DrawTreeNodeEventArgs(Graphics, TreeNode, Rectangle, TreeNodeStates) Konstruktor

Definition

Initialisiert eine neue Instanz der DrawTreeNodeEventArgs-Klasse.

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)

Parameter

graphics
Graphics

Die Graphics-Oberfläche, auf der gezeichnet werden soll.

node
TreeNode

Das zu zeichnende TreeNode.

bounds
Rectangle

Das Rectangle, in dem gezeichnet werden soll.

state
TreeNodeStates

Eine bitweise Kombination der TreeNodeStates-Werte, die den aktuellen Zustand des zu zeichnenden TreeNode angibt.

Ausnahmen

.NET 6 und höhere Versionen: graphics ist null.

Gilt für: