ContextNodeCollection.Insert 方法

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 参数为 nullnull 引用(在 Visual Basic 中为 Nothing),则此方法将引发异常。

示例

下面的示例在 ContextNodeCollection (nodes) 的开头插入一个 ContextNode (firstNode)。

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

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

ContextNodeCollection 类

ContextNodeCollection 成员

Microsoft.Ink 命名空间