DrawTreeNodeEventArgs(Graphics, TreeNode, Rectangle, TreeNodeStates) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the DrawTreeNodeEventArgs class.
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)
Parameters
- state
- TreeNodeStates
A bitwise combination of the TreeNodeStates values indicating the current state of the TreeNode to draw.
Exceptions
.NET 6 and later versions: graphics
is null
.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.