TreeNode.ImageKey Propiedad

Definición

Obtiene o establece la clave para la imagen asociada a este nodo de árbol cuando el nodo está en un estado no seleccionado.

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

Valor de propiedad

Clave para la imagen asociada a este nodo de árbol cuando el nodo está en un estado no seleccionado.

Atributos

Comentarios

La clave de imagen devuelta por esta propiedad se encuentra en la ImageList propiedad del control contenedor TreeView .

No ImageKey distingue mayúsculas de minúsculas.

ImageKey y ImageIndex son mutuamente excluyentes, lo que significa que si se establece uno, el otro se establece en un valor no válido y se omite. Si establece la ImageKey propiedad , la ImageIndex propiedad se establece automáticamente en -1. Como alternativa, si establece la ImageIndex propiedad , se ImageKey establece automáticamente en una cadena vacía ("").

Se aplica a