次の方法で共有


TreeView.VisibleCount プロパティ

ツリー ビュー コントロール内に完全に表示できるツリー ノードの数を取得します。

Public ReadOnly Property VisibleCount As Integer
[C#]
public int VisibleCount {get;}
[C++]
public: __property int get_VisibleCount();
[JScript]
public function get VisibleCount() : int;

プロパティ値

TreeView コントロール内に完全に表示できる TreeNode 項目の数。

解説

VisibleCount 値は、ツリー ビュー内のツリー ノードの数を超える場合があります。この値は、クライアント ウィンドウの高さをツリー ノード項目の高さで割って算出されます。結果の値は、 TreeView の現在のサイズ内に表示できる TreeNode オブジェクトの合計数になります。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

TreeView クラス | TreeView メンバ | System.Windows.Forms 名前空間 | IsVisible