Redigeeri

Jagamisviis:


TreeView.OnDrawNode(DrawTreeNodeEventArgs) Method

Definition

Raises the DrawNode event.

protected:
 virtual void OnDrawNode(System::Windows::Forms::DrawTreeNodeEventArgs ^ e);
protected virtual void OnDrawNode (System.Windows.Forms.DrawTreeNodeEventArgs e);
abstract member OnDrawNode : System.Windows.Forms.DrawTreeNodeEventArgs -> unit
override this.OnDrawNode : System.Windows.Forms.DrawTreeNodeEventArgs -> unit
Protected Overridable Sub OnDrawNode (e As DrawTreeNodeEventArgs)

Parameters

e
DrawTreeNodeEventArgs

A DrawTreeNodeEventArgs that contains the event data.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnDrawNode method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnDrawNode(DrawTreeNodeEventArgs) in a derived class, be sure to call the base class's OnDrawNode(DrawTreeNodeEventArgs) method so that registered delegates receive the event.

Applies to

See also