ImageList.ImageCollection.SetKeyName(Int32, String) Method
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.
Sets the key for an image in the collection.
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)
Parameters
- index
- Int32
The zero-based index of an image in the collection.
- name
- String
The name of the image to be set as the image key.
Exceptions
The specified index is less than 0 or greater than or equal to Count.
Remarks
The name of an image corresponds to its key in the ImageList.ImageCollection. An image key is not case-sensitive.
Applies to
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.