TreeNode.SelectedImageKey TreeNode.SelectedImageKey TreeNode.SelectedImageKey TreeNode.SelectedImageKey Property

定義

取得或設定影像的索引鍵,這個影像會在樹狀節點處於選取狀態時顯示在樹狀節點中。Gets or sets the key of the image displayed in the tree node when it is in a selected state.

public:
 property System::String ^ SelectedImageKey { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.TreeViewImageKeyConverter))]
[System.Windows.Forms.RelatedImageList("TreeView.ImageList")]
public string SelectedImageKey { get; set; }
member this.SelectedImageKey : string with get, set
Public Property SelectedImageKey As String

屬性值

當樹狀節點處於選取狀態時所顯示之影像的索引鍵。The key of the image displayed when the tree node is in a selected state.

備註

這個屬性所傳回的影像索引鍵包含在父ImageList TreeView控制項的屬性中。The image key returned by this property is contained in the ImageList property of the parent TreeView control.

適用於