ListViewItem.ImageList Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the ImageList that contains the image displayed with the item.
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
Property Value
The ImageList used by the ListView control that contains the image displayed with the item.
- Attributes
Remarks
Depending on the current value of the View property of the ListView control associated with the item, the ImageList used by the item could be one specified in the LargeImageList property or the SmallImageList property of the ListView control. If the View property is set to LargeIcon, the ImageList specified in the LargeImageList property is used; otherwise, the ImageList specified in the SmallImageList property is used. You can use this property to determine which ImageList control is providing the image for the item. To determine the index position in the ImageList that contains the image to display for the item, use the ImageIndex property.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈