次の方法で共有


TreeView.GetNodeAt メソッド (Point)

指定した位置にあるツリー ノードを取得します。

Overloads Public Function GetNodeAt( _
   ByVal pt As Point _) As TreeNode
[C#]
public TreeNode GetNodeAt(Pointpt);
[C++]
public: TreeNode* GetNodeAt(Pointpt);
[JScript]
public function GetNodeAt(
   pt : Point) : TreeNode;

パラメータ

  • pt
    評価および取得するノードの位置を示す Point

戻り値

ツリー ビュー内の指定した座標位置にある TreeNode

解説

新しい Point オブジェクトの X 値と Y 値として、 MouseDown イベントの MouseEventArgs.X 座標と MouseEventArgs.Y 座標を渡すことができます。

必要条件

プラットフォーム: 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 名前空間 | TreeView.GetNodeAt オーバーロードの一覧 | Point