Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content

InkOverlay.OnStroke Method

InkOverlay.OnStroke Method

Allows derived classes to modify the default behavior of the Stroke event.


Visual Basic .NET Overridable Protected Sub OnStroke( _
ByVal e As InkCollectorStrokeEventArgs _
C# protected virtual void OnStroke(
InkCollectorStrokeEventArgs e
Managed C++ protected: virtual void OnStroke(
InkCollectorStrokeEventArgs *e


e Microsoft.Ink.InkCollectorStrokeEventArgs. The InkCollectorStrokeEventArgs object that contains the event data.


Raising an event invokes the event handler through a delegate.

In derived classes, this method is called only if a delegate is attached to the Stroke event.

When overriding this method in a derived class, call the OnStroke method of the base class so that registered delegates receive the event.

See Also

© 2015 Microsoft