This document is archived and information here might be outdated.  Recommended version.


TabletExt CoClass (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > EditorExt > ESRI.ArcGIS.EditorExt > Classes > T > TabletExt CoClass (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (EditorExt)  

TabletExt CoClass

Tablet support extension object.

Product Availability

Available with ArcGIS Desktop.

Description

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.

Supported Platforms

Windows

Interfaces

Interfaces Description
ITabletExt Provides access to the Tablet support extension.
ITabletExtEvents Provides access to the tablet support extension events.

Remarks

To get a reference to the Tablet extension, use IApplication::FindExtensionByCLSID or IApplication::FindExtensionByName.



 

 

[C#]

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;
}

 

[Visual Basic .NET]

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