Represents an object that is useful for annotation scenarios where users are not concerned with performing recognition on ink but instead are interested in the size, shape, color, and position of the ink.
Definition
Visual Basic .NETPublic Class InkOverlay Inherits Object Implements IDisposableC#public class InkOverlay : Object, IDisposableManaged C++public __gc class InkOverlay : public Object, IDisposable
Members Table
The following table lists the members exposed by the object. EventsEventDescriptionCursorButtonDownOccurs when the InkOverlay detects a cursor button that is down.CursorButtonUpOccurs when the InkOverlay detects a cursor button that is up.CursorDownOccurs when the cursor tip contacts the digitizing tablet surface.CursorInRangeOccurs when a cursor enters the physical detection range (proximity) of the tablet context.CursorOutOfRangeOccurs when a cursor leaves the physical detection range (proximity) of the tablet context.DoubleClickOccurs when the InkOverlay object is double-clicked.GestureOccurs when an application-specific gesture is recognized.MouseDownOccurs when the mouse pointer is over the InkOverlay and a mouse button is pressed.MouseMoveOccurs when the mouse pointer is moved over the InkOverlay.MouseUpOccurs when the mouse pointer is over the InkOverlay and a mouse button is released.MouseWheelOccurs when the mouse wheel moves while the InkOverlay object has focus.NewInAirPacketsOccurs when an in-air packet is seen, which happens when a user moves a pen near the tablet and the cursor is within the InkOverlay object's window or the user moves a mouse within the InkOverlay object's associated window.NewPacketsOccurs when the InkOverlay receives packets.PaintedOccurs when the InkOverlay object has completed redrawing itself.PaintingOccurs before the InkOverlay object redraws itself.SelectionChangedOccurs when the selection of ink within the control has changed, such as through alterations to the user interface, cut-and-paste procedures, or the Selection property.SelectionChangingOccurs when the selection of ink within the control is about to change, such as through alterations to the user interface, cut-and-paste procedures, or the Selection property.SelectionMovedOccurs when the position of the current selection has changed, such as through alterations to the user interface, cut-and-paste procedures, or the Selection property.SelectionMovingOccurs when the position of the current selection is about to change, such as through alterations to the user interface, cut-and-paste procedures, or the Selection property.SelectionResizedOccurs when the size of the current selection has changed, such as through alterations to the user interface, cut-and-paste procedures, or the Selection property.SelectionResizingOccurs when the size of the current selection is about to change, such as through alterations to the user interface, cut-and-paste procedures, or the Selection property.StrokeOccurs when the user finishes drawing a new stroke on any tablet.StrokesDeletedOccurs after strokes have been deleted from the Ink property.StrokesDeletingOccurs before strokes are deleted from the Ink property.SystemGestureOccurs when a system gesture is recognized.TabletAddedOccurs when a Tablet is added to the system.TabletRemovedOccurs when a Tablet is removed from the system.FieldsFieldDescriptionClipInkToMarginNot implemented.DefaultMarginReturns the default margin used by the MarginX and MarginY properties.MethodsMethodDescriptionDisposeReleases resources used by the InkOverlay object.DrawSets a rectangle in which to redraw the ink within the InkOverlay object.Equals Determines whether two Object instances are equal. Inherited from Object .FinalizeFrees the resources of the current InkOverlay object before it is reclaimed by the garbage collector.GetGestureStatusReturns a value that indicates whether the InkOverlay object has interest in a particular application gesture.GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. Inherited from Object .GetType Gets the Type of the current instance. Inherited from Object .GetWindowInputRectangleGets the window rectangle, in pixels, within which ink is drawn.HitTestSelectionReturns a value that indicates which part of a selection, if any, was hit during a hit test.InkOverlayInitializes a new instance of the InkOverlay class.MemberwiseClone Creates a shallow copy of the current Object . Inherited from Object .OnCursorButtonDownAllows derived classes to modify the default behavior of the CursorButtonDown event.OnCursorButtonUpAllows derived classes to modify the default behavior of the CursorButtonUp event.OnCursorDownAllows derived classes to modify the default behavior of the CursorDown event.OnCursorInRangeAllows derived classes to modify the default behavior of the CursorInRange event.OnCursorOutOfRangeAllows derived classes to modify the default behavior of the CursorOutOfRange event.OnDoubleClickAllows derived classes to modify the default behavior of the DoubleClick event.OnGestureAllows derived classes to modify the default behavior of the Gesture event.OnMouseDownAllows derived classes to modify the default behavior of the MouseDown event.OnMouseMoveAllows derived classes to modify the default behavior of the MouseMove event.OnMouseUpAllows derived classes to modify the default behavior of the MouseUp event.OnMouseWheelAllows derived classes to modify the default behavior of the MouseWheel event.OnNewInAirPacketsAllows derived classes to modify the default behavior of the NewInAirPackets event.OnNewPacketsAllows derived classes to modify the default behavior of the NewPackets event.OnPaintedAllows derived classes to modify the default behavior of the Painted event.OnPaintingAllows derived classes to modify the default behavior of the Painting event.OnSelectionChangedAllows derived classes to modify the default behavior of the SelectionChanged event.OnSelectionChangingAllows derived classes to modify the default behavior of the SelectionChanging event.OnSelectionMovedAllows derived classes to modify the default behavior of the SelectionMoved event.OnSelectionMovingAllows derived classes to modify the default behavior of the SelectionMoving event.OnSelectionResizedAllows derived classes to modify the default behavior of the SelectionResized event.OnSelectionResizingAllows derived classes to modify the default behavior of the SelectionResizing event.OnStrokeAllows derived classes to modify the default behavior of the Stroke event.OnStrokesDeletedAllows derived classes to modify the default behavior of the StrokesDeleted event.OnStrokesDeletingAllows derived classes to modify the default behavior of the StrokesDeleting event.OnSystemGestureAllows derived classes to modify the default behavior of the SystemGesture event.OnTabletAddedAllows derived classes to modify the default behavior of the TabletAdded event.OnTabletRemovedAllows derived classes to modify the default behavior of the TabletRemoved event.ReferenceEquals Determines whether the specified Object instances are the same instance. Inherited from Object .SetAllTabletsModeSets the InkOverlay object to collect ink from any tablet attached to the Tablet PC.SetGestureStatusSets whether or not the InkOverlay object has interest in a known application gesture.SetSingleTabletIntegratedModeSets the InkOverlay object to collect ink from only one tablet attached to the Tablet PC. Ink from other tablets is ignored by the InkOverlay object.SetWindowInputRectangleSets the window rectangle, in pixels, within which ink is drawn.ToString Returns a String that represents the current Object . Inherited from Object .PropertiesPropertyDescriptionAttachedControlGets or sets the control to which the InkOverlay object is attached.AttachModeGets or sets the value that specifies whether the InkOverlay object is attached behind or in front of the known window.AutoRedrawGets or sets a value that specifies whether the InkOverlay object repaints the ink when the window is invalidated.CollectingInkGets a value that specifies whether ink is currently being drawn on an InkOverlay object.CollectionModeGets or sets the collection mode that determines whether ink, gestures, or both are recognized as the user writes.CursorGets or sets the cursor that appears when the mouse pointer is over the InkPicture control.CursorsGets the Cursors collection that is available for use in the inking region.DefaultDrawingAttributesGets or sets the default DrawingAttributes object, which specifies the drawing attributes that are used when drawing and displaying ink.DesiredPacketDescriptionGets or sets interest in aspects of the packets associated with ink drawn on the InkOverlay object.DynamicRenderingGets or sets a value that indicates whether ink is rendered as it is drawn.EditingModeGets or sets a value that indicates whether the InkOverlay is in ink mode, deletion mode, or selecting/editing mode.EnabledGets or sets a value that specifies whether the InkOverlay object collects pen input.EraserModeGets or sets a value that indicates whether ink is erased by stroke or by point.EraserWidthGets or sets a value that specifies the width of the eraser pen tip.HandleGets or sets the handle of the window to which the InkOverlay object is attached.InkGets or sets the Ink object that is associated with the InkOverlay object.MarginXGets or sets the margins along the x-axis, in pixels.MarginYGets or sets the margins along the y-axis, in pixels.RendererGets or sets the Renderer object that is used to draw ink.SelectionGets or sets the Strokes collection that is currently selected inside the InkOverlay control.SupportHighContrastInkGets or sets a value that specifies whether ink is rendered as just one color when the system is in High Contrast mode.SupportHighContrastSelectionUIGets or sets a value that specifies whether all selection UI are drawn in high contrast when the system is in High Contrast mode.TabletGets the tablet device that the InkOverlay object is currently using to collect input.
The following table lists the members exposed by the object.
Events
Fields
Methods
Properties
Inheritance Hierarchy
Object InkOverlay
Remarks
Caution: To avoid a memory leak you must explicitly call the Dispose method on any InkOverlay object to which an event handler has been attached before the object goes out of scope.The InkOverlay object is well suited for note taking and basic scribbling. The primary intended use of this object is to display ink as ink.In general, the run-time user interface for this object is a transparent window with opaque ink.The MouseDown, MouseMove, MouseUp, and MouseWheel events return x- and y-coordinates in pixels, and not the HIMETRIC units that are associated with the ink space. This is because these events replace the mouse events of pen-unaware applications and these applications understand only pixels.Caution: If you are setting the InkOverlay object's AttachMode property to InFront, then create the InkOverlay object in the thread in which the form is running. Your application may stop responding if the InkOverlay object is created in a different thread and its AttachMode property is set to InFront.Note: The InkOverlay object cannot be safely released on a non-user interface (UI) thread.To improve your application's performance, manually dispose of an InkOverlay object when it is no longer needed.Security Alert: If using under partial trust, this class and all its methods require UIPermissionWindow.SafeTopLevelWindows permission. See Security And Trust for more information.
The InkOverlay object is well suited for note taking and basic scribbling. The primary intended use of this object is to display ink as ink.
In general, the run-time user interface for this object is a transparent window with opaque ink.
The MouseDown, MouseMove, MouseUp, and MouseWheel events return x- and y-coordinates in pixels, and not the HIMETRIC units that are associated with the ink space. This is because these events replace the mouse events of pen-unaware applications and these applications understand only pixels.
To improve your application's performance, manually dispose of an InkOverlay object when it is no longer needed.
Class Information
NamespaceMicrosoft.InkAssemblyMicrosoft.Ink (microsoft.ink.dll)Strong NameMicrosoft.Ink, Version=1.7.4009.0, Culture=neutral, PublicKeyToken=a2870d9cc4d021c8
See Also