TreeView.VisibleCount Property
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.
Gets the number of tree nodes that can be fully visible in the tree view control.
public:
property int VisibleCount { int get(); };
[System.ComponentModel.Browsable(false)]
public int VisibleCount { get; }
[<System.ComponentModel.Browsable(false)>]
member this.VisibleCount : int
Public ReadOnly Property VisibleCount As Integer
Property Value
The number of TreeNode items that can be fully visible in the TreeView control.
- Attributes
Remarks
The VisibleCount value can be greater than the number of tree nodes in the tree view. The value is calculated by dividing the height of the client window by the height of a tree node item. The result is the total number of TreeNode objects that the TreeView can display within its current dimensions.