RelatedImageListAttribute(String) 建構函式

定義

初始化 RelatedImageListAttribute 類別的新執行個體。

public:
 RelatedImageListAttribute(System::String ^ relatedImageList);
public RelatedImageListAttribute (string relatedImageList);
new System.Windows.Forms.RelatedImageListAttribute : string -> System.Windows.Forms.RelatedImageListAttribute
Public Sub New (relatedImageList As String)

參數

relatedImageList
String

屬性相關的 ImageList 之名稱。

備註

參數 relatedImageList 可以參考目前 物件的屬性,或是目前 物件的 屬性。 例如,如果您有屬性 ListViewItem 設定為包含 ListView 物件的 物件 ListView ,且包含 ListView 物件具有 SmallImageList 屬性,則可以傳遞 "ListView.SmallImageList" 做為 relatedImageList 值。

適用於