ContextNodeCollection 构造函数 (array<ContextNode[])

初始化 ContextNodeCollection 类的新实例,并使用 ContextNode 对象的数组填充该实例。

命名空间:  System.Windows.Ink
程序集:  IAWinFX(在 IAWinFX.dll 中)

语法

声明
Public Sub New ( _
    nodes As ContextNode() _
)
用法
Dim nodes As ContextNode()

Dim instance As New ContextNodeCollection(nodes)
public ContextNodeCollection(
    ContextNode[] nodes
)
public:
ContextNodeCollection(
    array<ContextNode^>^ nodes
)
public ContextNodeCollection(
    ContextNode[] nodes
)
public function ContextNodeCollection(
    nodes : ContextNode[]
)

参数

示例

下面的示例演示如何从名为 nodeArray 的 ContextNode 对象数组创建 ContextNodeCollection

Dim nodes As New ContextNodeCollection(nodeArray)
ContextNodeCollection nodes = new ContextNodeCollection(nodeArray);

平台

Windows Vista

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

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

ContextNodeCollection 类

ContextNodeCollection 成员

ContextNodeCollection 重载

System.Windows.Ink 命名空间