Share via


InkOverlaySelectionMovedEventHandler Delegate

InkOverlaySelectionMovedEventHandler Delegate

Represents the method that handles the SelectionMoved event of an InkOverlay object.

Definition

Visual Basic .NET Public Delegate Sub InkOverlaySelectionMovedEventHandler( _
ByVal sender As Object, _
ByVal e As InkOverlaySelectionMovedEventArgs _
)
C# public delegate void InkOverlaySelectionMovedEventHandler(
object sender,
InkOverlaySelectionMovedEventArgs e
);
Managed C++ public: __gc __delegate void InkOverlaySelectionMovedEventHandler(
Object *sender,
InkOverlaySelectionMovedEventArgs *e
);

Parameters

sender System.Object. [in] Specifies the source InkOverlay of this event.
e Microsoft.Ink.InkOverlaySelectionMovedEventArgs. [in] Specifies the InkOverlaySelectionMovedEventArgs object that contains the event data.

Delegate Information

Namespace Microsoft.Ink
Assembly Microsoft.Ink (microsoft.ink.dll)
Strong Name Microsoft.Ink, Version=1.7.4009.0, Culture=neutral, PublicKeyToken=a2870d9cc4d021c8

Remarks

The SelectionMoved event occurs 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.

When you create an InkOverlaySelectionMovedEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For performance reasons, the default event interest is off in managed code but is turned on automatically if you add an event handler.

To get the new bounding rectangle of the collection of strokes that have been moved, call the GetBoundingBox method.

See Also