語言

TreeNode.Name 屬性

定義

取得或設定樹節點的名稱。

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String

屬性值

A String 代表樹節點的名稱。

備註

當節點屬於 Name時,TreeNodea 的 TreeNodeCollection 也是該節點的鍵。 若節點沒有名稱,則 Name 回傳一個空字串(“”)。

適用於