This documentation is archived and is not being maintained.

InkOverlay.SelectionChanged Event

Occurs when the selection of ink within the InkOverlay object has changed, such as through alterations to the user interface, cut-and-paste procedures, or the Selection property.

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

public event InkOverlaySelectionChangedEventHandler SelectionChanged

The event handler receives an argument of type EventArgs, which contains no data.

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
Show: