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


TabletExt Class (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (EditorExt)  

TabletExt Class

Tablet support extension object.

TabletExt is a non-creatable object. References to non-creatable objects must be obtained through other objects.

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.

Event Interfaces

Interfaces Description
ITabletExtEvents (default) 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

Working with Events

[Visual Basic 6.0]

When working with TabletExt's default outbound interface in Visual Basic 6 declare variables as follows:

Private WithEvents pTabletExt as TabletExt