VisualCollection.RemoveRange(Int32, Int32) 메서드

정의

VisualCollection에서 시각적 개체의 범위를 제거합니다.

public:
 void RemoveRange(int index, int count);
public void RemoveRange (int index, int count);
member this.RemoveRange : int * int -> unit
Public Sub RemoveRange (index As Integer, count As Integer)

매개 변수

index
Int32

제거할 요소 범위의 인덱스(0부터 시작)입니다.

count
Int32

제거할 요소의 수입니다.

예외

indexcount가 0보다 작은 경우

indexcountVisualCollection에 있는 요소의 올바른 범위를 나타내지 않는 경우

설명

제거 된 개체는 시각적 개체는 빈 지점을를 이동 하 고 해당 인덱스 값 업데이트 됩니다.

합니다 RemoveRange 메서드는 또한 소유자는 시각적 개체를 부모 간에 부모-자식 관계를 제거의 VisualCollection, 및 자식 시각적 개체의 범위입니다.

시각적 자식 개체의 기본 스토리지 구현에 대한 낮은 수준 제어가 필요한 경우 AddVisualChildRemoveVisualChild 메서드 사용을 고려하세요. 이러한 메서드를 사용할 때는 고유한 스토리지 구현을 정의하고 VisualCollection을 사용하지 않아야 합니다.

적용 대상