InkOverlaySelectionChangedEventHandler Delegate
Represents the method that handles the SelectionChanged event of an InkOverlay object.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public Delegate Sub InkOverlaySelectionChangedEventHandler ( _
sender As Object, _
e As EventArgs _
)
'Usage
Dim instance As New InkOverlaySelectionChangedEventHandler(AddressOf HandlerMethod)
public delegate void InkOverlaySelectionChangedEventHandler(
Object sender,
EventArgs e
)
public delegate void InkOverlaySelectionChangedEventHandler(
Object^ sender,
EventArgs^ e
)
JScript does not support delegates.
Parameters
sender
Type: System.ObjectThe source InkOverlay of this event.
e
Type: System.EventArgsThe EventArgs object that contains the event data.
Remarks
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.
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