This documentation is archived and is not being maintained.

TreeView.VisibleCount Property

Gets the number of tree nodes that can be fully visible in the tree view control.

[Visual Basic]
Public ReadOnly Property VisibleCount As Integer
public int VisibleCount {get;}
public: __property int get_VisibleCount();
public function get VisibleCount() : int;

Property Value

The number of TreeNode items that can be fully visible in the TreeView control.


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 is capable of displaying within its current dimensions.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

TreeView Class | TreeView Members | System.Windows.Forms Namespace | IsVisible