共用方式為


ContextNodeBaseCollection.Insert 方法

ContextNodeBase 插入至 ContextNodeBaseCollection 中指定的索引位置。

命名空間:  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
)

參數

備註

如果 nodeToInsert 參數為 nullNull 參照 (即 Visual Basic 中的 Nothing),則這個方法會擲回例外狀況。

範例

下列範例會在 ContextNodeBaseCollection (名為 nodes) 開頭插入 ContextNodeBase (firstNode)。

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 命名空間