This documentation is archived and is not being maintained.

InkOverlaySelectionChangedEventHandler Delegate

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

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

public delegate void InkOverlaySelectionChangedEventHandler(
	Object sender,
	EventArgs e


Type: System.Object

The source InkOverlay of this event.

Type: System.EventArgs

The EventArgs object that contains the event data.

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

The EventArgs class contains no event data. It is used by events that do not pass state information to an event handler when an event is raised.

In this example, the SelectionChanged event handler displays the current number of selected Stroke objects.

private void mInkObject_SelectionChanged(object sender, EventArgs e)
    // mInkObject can be InkOverlay or InkPicture
    statusLabelSelectedStrokeCount.Text = mInkObject.Selection.Count.ToString();

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0