Partager via


DrawTreeNodeEventArgs(Graphics, TreeNode, Rectangle, TreeNodeStates) Constructeur

Définition

Initialise une nouvelle instance de la 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)

Paramètres

graphics
Graphics

Surface Graphics sur laquelle dessiner.

node
TreeNode

TreeNode à dessiner.

bounds
Rectangle

Rectangle au sein duquel dessiner.

state
TreeNodeStates

Combinaison d'opérations de bits des valeurs TreeNodeStates indiquant l'état actuel du TreeNode à dessiner.

Exceptions

.NET 6 et versions ultérieures : graphics est null.

S’applique à