ImageList.ImageCollection.Item[] 속성

정의

기존Image에 있는 항목을 ImageList 가져오거나 설정합니다.

오버로드

Name Description
Item[String]

Image 컬렉션에서 지정된 키를 가진 값을 가져옵니다.

Item[Int32]

컬렉션 내의 지정된 인덱스에서 값을 가져오거나 설정합니다 Image .

Item[String]

Source:
ImageList.ImageCollection.cs
Source:
ImageList.ImageCollection.cs
Source:
ImageList.ImageCollection.cs
Source:
ImageList.ImageCollection.cs
Source:
ImageList.ImageCollection.cs

Image 컬렉션에서 지정된 키를 가진 값을 가져옵니다.

public:
 property System::Drawing::Image ^ default[System::String ^] { System::Drawing::Image ^ get(System::String ^ key); };
public System.Drawing.Image this[string key] { get; }
public System.Drawing.Image? this[string key] { get; }
member this.Item(string) : System.Drawing.Image
Default Public ReadOnly Property Item(key As String) As Image

매개 변수

key
String

컬렉션에서 검색할 이미지의 이름입니다.

속성 값

Image 지정된 키가 있는 키입니다.

설명

이미지의 이름은 .의 키에 ImageList.ImageCollection해당합니다. 키 비교는 대/소문자를 구분하지 않습니다.

지정된 키를 가진 이미지를 찾을 수 없는 경우 속성 값 Item[] 은 .입니다 null.

적용 대상

Item[Int32]

Source:
ImageList.ImageCollection.cs
Source:
ImageList.ImageCollection.cs
Source:
ImageList.ImageCollection.cs
Source:
ImageList.ImageCollection.cs
Source:
ImageList.ImageCollection.cs

컬렉션 내의 지정된 인덱스에서 값을 가져오거나 설정합니다 Image .

public:
 property System::Drawing::Image ^ default[int] { System::Drawing::Image ^ get(int index); void set(int index, System::Drawing::Image ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Drawing.Image this[int index] { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Item(int) : System.Drawing.Image with get, set
Default Public Property Item(index As Integer) As Image

매개 변수

index
Int32

가져오기 또는 설정할 이미지의 인덱스입니다.

속성 값

로 지정된 목록의 이미지입니다 index.

특성

예외

인덱스가 0보다 작거나 같거나 같습니다 Count.

image 가 아닙니다 Bitmap.

할당할 이미지가 .입니다 nullBitmap.

이미지를 목록에 추가할 수 없습니다.

설명

반환된 비트맵은 원래 이미지의 복사본이며 메서드를 사용하여 Image.Dispose 삭제해야 합니다.

적용 대상