TextElementCollection<TextElementType>.InsertBefore 메서드

정의

지정된 컬렉션 항목 앞에 지정된 항목을 컬렉션에 삽입합니다.

public:
 void InsertBefore(TextElementType nextSibling, TextElementType newItem);
public void InsertBefore(TextElementType nextSibling, TextElementType newItem);
member this.InsertBefore : 'extElementType * 'extElementType -> unit
Public Sub InsertBefore (nextSibling As TextElementType, newItem As TextElementType)

매개 변수

nextSibling
TextElementType

새 항목을 삽입할 컬렉션의 항목입니다.

newItem
TextElementType

컬렉션에 삽입할 항목입니다.

예외

newItem이 이미 컬렉션에 속해 있을 때 발생합니다.

nextSibling 또는 newItemnull일 때 발생합니다.

nextSibling이 이 컬렉션에 속하지 않을 때 발생합니다.

적용 대상