TreeView.VisibleCount 属性

定义

获取树视图控件中完全可见的树节点的数目。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

属性值

Int32

TreeNode 控件中完全可见的 TreeView 项的数目。The number of TreeNode items that can be fully visible in the TreeView control.

属性

注解

VisibleCount该值可以大于树视图中的树节点数。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. 结果是 TreeNode TreeView 可在其当前维度内显示的对象总数。The result is the total number of TreeNode objects that the TreeView can display within its current dimensions.

适用于

另请参阅