ListViewItem.ImageList Propriété

Définition

Obtient le ImageList qui contient l'image affichée avec l'élément.

public:
 property System::Windows::Forms::ImageList ^ ImageList { System::Windows::Forms::ImageList ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.ImageList ImageList { get; }
[<System.ComponentModel.Browsable(false)>]
member this.ImageList : System.Windows.Forms.ImageList
Public ReadOnly Property ImageList As ImageList

Valeur de propriété

ImageList

ImageList utilisé par le contrôle ListView qui contient l'image affichée avec l'élément.

Attributs

Remarques

Selon la valeur actuelle de la View ListView propriété du contrôle associée à l’élément, l’élément ImageList utilisé peut être un spécifié dans la LargeImageList propriété ou la SmallImageList propriété du ListView contrôle. Si la View propriété est définie LargeIconsur , la ImageList propriété spécifiée dans la LargeImageList propriété est utilisée ; sinon, celle ImageList spécifiée dans la SmallImageList propriété est utilisée. Vous pouvez utiliser cette propriété pour déterminer quel ImageList contrôle fournit l’image de l’élément. Pour déterminer la position d’index dans l’image ImageList à afficher pour l’élément, utilisez la ImageIndex propriété.

S’applique à

Voir aussi