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属性,则可以作为relatedImageList值传递"ListView.SmallImageList"

适用于