Compartilhar via


InkPicture.OnPainted Method

InkPicture.OnPainted Method

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

Definition

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

Parameters

e System.Windows.Forms.PaintEventArgs. The PaintEventArgs Leave Site 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 Painted event.

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

See Also