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
)
参数
- index
类型:System.Int32
从零开始的索引,将在该索引处插入 nodeToInsert 参数中指定的 ContextNodeBase 对象。
- nodeToInsert
类型:System.Windows.Ink.AnalysisCore.ContextNodeBase
要插入的 ContextNodeBase 对象。
备注
如果 nodeToInsert 参数为 nullnull 引用(在 Visual Basic 中为 Nothing),则此方法将引发异常。
示例
下面的示例在名为 nodes 的 ContextNodeBaseCollection 的开头插入一个 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