System.Windows.Forms.DrawTreeNodeEventArgs.Bounds Property

Gets the size and location of the System.Windows.Forms.TreeNode to draw.

Syntax

public System.Drawing.Rectangle Bounds { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The location specified by this property is relative to the upper-left corner of the System.Windows.Forms.TreeView control.

When the TreeView.DrawMode property is set to TreeViewDrawMode.OwnerDrawText, the area specified by the DrawTreeNodeEventArgs.Bounds property is the region in which a node can be clicked to select it. If you draw outside this hit test region, you should provide your own code for selecting a node when its visible area is clicked. You may also want to provide your own hit test code when the TreeView.DrawMode property is set to TreeViewDrawMode.OwnerDrawAll. In this mode, the DrawTreeNodeEventArgs.Bounds property encompasses the whole node across the entire width of the System.Windows.Forms.TreeView control, rather than the just hit test region.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0