次の方法で共有


ContextNodeBaseCollection.Insert メソッド

ContextNodeBaseCollection 内の指定したインデックス位置に、ContextNodeBase を挿入します。

名前空間 :  System.Windows.Ink.AnalysisCore
アセンブリ :  IACore (IACore.dll 内)

構文

'宣言
Public Sub Insert ( _
    index As Integer, _
    nodeToInsert As ContextNodeBase _
)
'使用
Dim instance As ContextNodeBaseCollection
Dim index As Integer
Dim nodeToInsert As ContextNodeBase

instance.Insert(index, nodeToInsert)
public void Insert(
    int index,
    ContextNodeBase nodeToInsert
)
public:
void Insert(
    int index, 
    ContextNodeBase^ nodeToInsert
)
public void Insert(
    int index,
    ContextNodeBase nodeToInsert
)
public function Insert(
    index : int, 
    nodeToInsert : ContextNodeBase
)

パラメータ

  • index
    型 : System.Int32
    nodeToInsert パラメータで指定された ContextNodeBase オブジェクトを挿入する、0 から始まるインデックス番号。

解説

nodeToInsert パラメータが nullnull 参照 (Visual Basic では Nothing) の場合、このメソッドは例外をスローします。

次の例では、nodes という名前の ContextNodeBaseCollection の先頭に、firstNode という名前の ContextNodeBase を挿入します。

nodes.Insert(0, firstNode)
            nodes.Insert(0, firstNode);

プラットフォーム

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

ContextNodeBaseCollection クラス

ContextNodeBaseCollection メンバ

System.Windows.Ink.AnalysisCore 名前空間