संपादित करें

इसके माध्यम से साझा किया गया


DrawTreeNodeEventArgs(Graphics, TreeNode, Rectangle, TreeNodeStates) Constructor

Definition

Initializes a new instance of the DrawTreeNodeEventArgs class.

public:
 DrawTreeNodeEventArgs(System::Drawing::Graphics ^ graphics, System::Windows::Forms::TreeNode ^ node, System::Drawing::Rectangle bounds, System::Windows::Forms::TreeNodeStates state);
public DrawTreeNodeEventArgs (System.Drawing.Graphics graphics, System.Windows.Forms.TreeNode node, System.Drawing.Rectangle bounds, System.Windows.Forms.TreeNodeStates state);
public DrawTreeNodeEventArgs (System.Drawing.Graphics graphics, System.Windows.Forms.TreeNode? node, System.Drawing.Rectangle bounds, System.Windows.Forms.TreeNodeStates state);
new System.Windows.Forms.DrawTreeNodeEventArgs : System.Drawing.Graphics * System.Windows.Forms.TreeNode * System.Drawing.Rectangle * System.Windows.Forms.TreeNodeStates -> System.Windows.Forms.DrawTreeNodeEventArgs
Public Sub New (graphics As Graphics, node As TreeNode, bounds As Rectangle, state As TreeNodeStates)

Parameters

graphics
Graphics

The Graphics surface on which to draw.

node
TreeNode

The TreeNode to draw.

bounds
Rectangle

The Rectangle within which to draw.

state
TreeNodeStates

A bitwise combination of the TreeNodeStates values indicating the current state of the TreeNode to draw.

Exceptions

.NET 6 and later versions: graphics is null.

Applies to