共用方式為


InkOverlay.OnPainting Method

InkOverlay.OnPainting Method

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

Definition

Visual Basic .NET Overridable Protected Sub OnPainting( _
ByVal e As InkOverlayPaintingEventArgs _
)
C# protected virtual void OnPainting(
InkOverlayPaintingEventArgs e
);
Managed C++ protected: virtual void OnPainting(
InkOverlayPaintingEventArgs *e
);

Parameters

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

Remarks

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 Painting event.

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

See Also