ListViewItem.ImageList Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient l’image ImageList 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)]
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é
Utilisé ImageList par le ListView contrôle qui contient l’image affichée avec l’élément.
- Attributs
Remarques
Selon la valeur actuelle de la ViewListView propriété du contrôle associé à l’élément, l’élément ImageList utilisé peut être un élément 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 celle ImageList qui contient l’image à afficher pour l’élément, utilisez la ImageIndex propriété.