Share via


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)

Syntax

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

AddHandler instance.SelectionChanged, handler
public event InkOverlaySelectionChangedEventHandler SelectionChanged
public:
 event InkOverlaySelectionChangedEventHandler^ SelectionChanged {
    void add (InkOverlaySelectionChangedEventHandler^ value);
    void remove (InkOverlaySelectionChangedEventHandler^ value);
}
JScript does not support events.

Remarks

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

Examples

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
private void mInkObject_SelectionChanged(object sender, EventArgs e)
{
    // mInkObject can be InkOverlay or InkPicture
    statusLabelSelectedStrokeCount.Text = mInkObject.Selection.Count.ToString();
}

Platforms

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.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkOverlay Class

InkOverlay Members

Microsoft.Ink Namespace

InkOverlay.Selection

InkOverlay.SelectionChanging

Other Resources

System.EventArgs