將 ContextNode 插入至 ContextNodeCollection 中指定的索引位置。
命名空間: Microsoft.Ink
組件: Microsoft.Ink.Analysis (在 Microsoft.Ink.Analysis.dll 中)
語法
'宣告
Public Sub Insert ( _
index As Integer, _
nodeToInsert As ContextNode _
)
'用途
Dim instance As ContextNodeCollection
Dim index As Integer
Dim nodeToInsert As ContextNode
instance.Insert(index, nodeToInsert)
public void Insert(
int index,
ContextNode nodeToInsert
)
public:
void Insert(
int index,
ContextNode^ nodeToInsert
)
public void Insert(
int index,
ContextNode nodeToInsert
)
public function Insert(
index : int,
nodeToInsert : ContextNode
)
參數
- index
型別:System.Int32
以零起始的索引,要在此處插入 nodeToInsert 參數中所指定的 ContextNode 物件。
- nodeToInsert
型別:Microsoft.Ink.ContextNode
要插入的 ContextNode 物件。
備註
如果 nodeToInsert 參數為 nullNull 參照 (即 Visual Basic 中的 Nothing),則這個方法會擲回例外狀況。
範例
下列範例會將 ContextNode (firstNode) 插入至 ContextNodeCollection (nodes) 的開頭。
nodes.Insert(0, firstNode)
nodes.Insert(0, firstNode);
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0