ArcObjects Library Reference  (Carto)    

InkGraphic CoClass

Ink Graphic Object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
IBoundsProperties Provides access to members that control Bounds Properties.
IClone (esriSystem) Provides access to members that control cloning of objects.
IElement Provides access to members that control the Element.
IElementProperties Provides access to members that control the Element Properties.
IElementProperties2 Provides access to members that control More Element Properties.
IElementProperties3 Provides access to members that control More Element Properties.
IElementShutdown Provides access to members that control the IElementShutdown interface.
IGraphicElement Provides access to members that control the Graphic Element object.
IInkGraphic Provides access to the InkGraphic object.
IPersist Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile.
IPersistStream (esriSystem)
IPropertySupport (esriSystem) Provides access to members that set a default property on an object.
ISupportErrorInfo Indicates whether a specific interface can return Automation error objects.
ITransform2D (esriGeometry) Provides access to methods for transforming geometries using either specific parameters or arbitrary transformation objects (affine transformations, geographic transformations, etc.).

Remarks

The InkGraphic Element is used for TabletPC support and is the element used to persist and draw ink graphics.  An InkGraphic implements the IElement interface, and you can use the IInkGraphic interface to get ink-specific properties for the element. Ink graphics are one of two types-Pen Ink or Highlight Ink. You can get the InkType using the IInkGraphic interface. The IInkGraphic interface exposes the stroke geometry as polyline geometry.

Using the IInkGraphicTool interface, you can control the properties of the Pen tool, such as width, tip type, and color of the ink that is drawn, or you can create your own Pen tool.

Geometry: InkGraphic accepts geometry of type esriGeometryPolyline.  The Polyline is used as the geometry with which the symbol is drawn.

InkGraphic does not implement the following properties and will return E_NOTIMPL for them:

IElementProperties::AutoTransform
IElementProperties2::AutoTransform
IElementProperties3::AutoTransform
IElementProperties::CustomProperty
IElementProperties2::CustomProperty
IElementProperties3::CustomProperty

Example

InkGraphic Example