This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > EditorExt > ESRI.ArcGIS.EditorExt > Classes > T > TabletExt Class (ArcObjects .NET 10.5 SDK) |
Tablet support extension object.
TabletExt is a non-creatable object. References to non-creatable objects must be obtained through other objects.
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. |
Interfaces | Description |
---|---|
ITabletExtEvents (default) | 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
When working with TabletExt's default outbound interface in Visual Basic 6 declare variables as follows:
Private WithEvents pTabletExt as TabletExt