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

适用于