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 がこのコレクションに属していない場合に発生します。

適用対象