Condividi tramite


DrawTreeNodeEventArgs(Graphics, TreeNode, Rectangle, TreeNodeStates) Costruttore

Definizione

Inizializza una nuova istanza della classe DrawTreeNodeEventArgs.

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)

Parametri

graphics
Graphics

La superficie dell'oggetto Graphics su cui disegnare.

node
TreeNode

Classe TreeNode da disegnare.

bounds
Rectangle

Oggetto Rectangle all'interno del quale creare.

state
TreeNodeStates

Combinazione bit per bit dei valori TreeNodeStates che indica lo stato corrente dell'oggetto TreeNode da creare.

Eccezioni

.NET 6 e versioni successive: graphics è null.

Si applica a