Export (0) Print
Expand All

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
[C#]
public int VisibleCount {get;}
[C++]
public: __property int get_VisibleCount();
[JScript]
public function get VisibleCount() : int;

Property Value

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

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

Requirements

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

Show:
© 2015 Microsoft