共用方式為


DrawTreeNodeEventArgs(Graphics, TreeNode, Rectangle, TreeNodeStates) 建構函式

定義

初始化 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)

參數

graphics
Graphics

要繪製的 Graphics 表層。

node
TreeNode

要繪製的 TreeNode

bounds
Rectangle

要於其中進行繪製的 Rectangle

state
TreeNodeStates

TreeNodeStates 值的位元組合,表示所要繪製 TreeNode 的目前狀態。

例外狀況

.NET 6 和更新版本: graphicsnull

適用於