ContextNodeCollection.Contains 方法
获取一个值,该值指示 ContextNodeCollection 是否包含特定的 ContextNode 对象。
命名空间: System.Windows.Ink
程序集: IAWinFX(在 IAWinFX.dll 中)
语法
声明
Public Function Contains ( _
node As ContextNode _
) As Boolean
用法
Dim instance As ContextNodeCollection
Dim node As ContextNode
Dim returnValue As Boolean
returnValue = instance.Contains(node)
public bool Contains(
ContextNode node
)
public:
bool Contains(
ContextNode^ node
)
public boolean Contains(
ContextNode node
)
public function Contains(
node : ContextNode
) : boolean
参数
- node
类型:System.Windows.Ink.ContextNode
要搜索的 ContextNode 对象。
返回值
类型:System.Boolean
如果 ContextNodeCollection 包含指定的 ContextNode 对象,则为 true;否则为 false。
示例
下面的示例演示如何检查特定的 ContextNode (myNode) 是否包含在 ContextNodeCollection (nodes) 中。
If nodes.Contains(myNode) Then
MessageBox.Show("The node is in the collection.")
if (nodes.Contains(myNode))
MessageBox.Show("The node is in the collection.");
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0