Share via


ListViewItem.ImageList 屬性

定義

取得 ImageList,包含隨項目顯示的影像。

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

屬性值

ImageList

ImageList 控制項使用的 ListView,包含隨項目顯示的影像。

屬性

備註

根據與專案相關聯之控制項的目前屬性值 View ,專案所使用的 可以是 屬性或 SmallImageList 控制項的 ListView 屬性中指定的 LargeImageListImageList ListView View如果屬性設定為 LargeIcon ,則會 ImageList 使用 屬性中指定的 LargeImageListImageList 否則會使用 屬性中指定的 SmallImageList 。 您可以使用這個屬性來判斷哪個 ImageList 控制項提供專案的影像。 若要判斷 中 ImageList 包含要為專案顯示之影像的索引位置,請使用 ImageIndex 屬性。

適用於

另請參閱