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)

'Declaration
Public Event SelectionChanged As InkOverlaySelectionChangedEventHandler
'Usage
Dim instance As InkOverlay 
Dim handler As InkOverlaySelectionChangedEventHandler 

AddHandler instance.SelectionChanged, handler

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 Sub mInkObject_SelectionChanged(ByVal sender As Object, ByVal e As EventArgs)
    ' mInkObject can be InkOverlay or InkPicture
    statusLabelSelectedStrokeCount.Text = mInkObject.Selection.Count.ToString()
End Sub

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: