Compartir a través de


DrawTreeNodeEventArgs(Graphics, TreeNode, Rectangle, TreeNodeStates) Constructor

Definición

Inicializa una nueva instancia de la clase 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)

Parámetros

graphics
Graphics

Superficie Graphics en la que se va a dibujar.

node
TreeNode

TreeNode que se va a dibujar.

bounds
Rectangle

Estructura Rectangle dentro de la que se va a dibujar.

state
TreeNodeStates

Combinación bit a bit de los valores de TreeNodeStates que indican el estado actual del control TreeNode que se va a dibujar.

Excepciones

.NET 6 y versiones posteriores: graphics es null.

Se aplica a