ImageList.ImageCollection.SetKeyName(Int32, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置集合中图像的键。
public:
void SetKeyName(int index, System::String ^ name);
public void SetKeyName(int index, string name);
member this.SetKeyName : int * string -> unit
Public Sub SetKeyName (index As Integer, name As String)
参数
- index
- Int32
集合中图像的从零开始的索引。
- name
- String
要设置为映像键的图像的名称。
例外
指定的索引小于 0 或大于或等于 Count。
注解
图像的名称与图像中的 ImageList.ImageCollection键相对应。 图像键不区分大小写。