This document is archived and information here might be outdated. Recommended version. |
Tablet support extension object.
The TabletExt class manages the state of ink collection in ArcMap. Use TabletExt to administer Tablet Toolbar options, clear the Ink sketch, or listen to ink events that happen on the map.
Interfaces | Description |
---|---|
ITabletExt | Provides access to the Tablet support extension. |
ITabletExtEvents | Provides access to the tablet support extension events. |
To get a reference to the Tablet extension, use IApplication::FindExtensionByCLSID or IApplication::FindExtensionByName.
The following code examples shows both methods being used to acquire a reference of type ITabletExt to the TabletExt object in C#.
public void GetTabletExtensionByCLSID()
{
UID tabletExtUid=new UIDClass();
tabletExtUid.Value="TABLETPCSUP.TabletExt";
//You can get app from ICommand :: OnCreate() hook parameter
ITabletExt tabletExt=app.FindExtensionByCLSID(tabletExtUid) as ITabletExt;
}
public void GetTabletExtensionByName()
{
//You can get app from ICommand :: OnCreate() hook parameter
ITabletExt tabletExt=app.FindExtensionByName("TabletPC Support") as ITabletExt;
}
The following code examples shows both methods being used to acquire a reference of type ITabletExt to the TabletExt object in VBNet.
Public Sub GetTabletExtensionByCLSID()
'You can get app from ICommand :: OnCreate() hook parameter
Dim extUid As UID=New UIDClass()
extUid.Value="TABLETPCSUP.TabletExt"
Dim tabletExt As ITabletExt=TryCast(app.FindExtensionByCLSID(extUid), ITabletExt)
End Sub
Public Sub GetTabletExtensionByName()
'You can get app from ICommand :: OnCreate() hook parameter
Dim tabletExt As ITabletExt=TryCast(app.FindExtensionByName("TabletPC Support"), ITabletExt)
End Sub