DrawingCollection.Insert(Int32, Drawing) 메서드
정의
지정된 인덱스 위치에 있는 이 Drawing에 DrawingCollection를 삽입합니다.Inserts a Drawing into this DrawingCollection at the specified index position.
public:
virtual void Insert(int index, System::Windows::Media::Drawing ^ value);
public void Insert (int index, System.Windows.Media.Drawing value);
abstract member Insert : int * System.Windows.Media.Drawing -> unit
override this.Insert : int * System.Windows.Media.Drawing -> unit
Public Sub Insert (index As Integer, value As Drawing)
매개 변수
- index
- Int32
value
, 즉 지정된Drawing을 삽입할 인덱스 위치입니다.The index position at which to insert value
, the specified Drawing.
- value
- Drawing
삽입할 항목입니다.The item to insert.
구현
예외
value
이(가) null
인 경우value
is null
.
index
가 DrawingCollection의 유효한 인덱스가 아닌 경우index
is not a valid index in the DrawingCollection.
DrawingCollection이 읽기 전용인 경우The DrawingCollection is read-only.
또는-or- DrawingCollection가 고정 크기입니다.The DrawingCollection has a fixed size.
설명
일반적인 구현과 달리 IList<T>.Insert,이 구현은 throw는 ArgumentException 삽입 하려는 경우를 null (Nothing) 참조 합니다.Unlike typical implementations of IList<T>.Insert, this implementation throws an ArgumentException if you attempt to insert a null (Nothing) reference.