返回包含任何其标识符位于指定笔画标识符数组中的笔画的、具有指定类型的 ContextNodeBase 对象。
命名空间: System.Windows.Ink.AnalysisCore
程序集: IACore(在 IACore.dll 中)
语法
声明
Public Function FindNodesOfType ( _
type As Guid, _
strokeIds As Integer() _
) As ContextNodeBaseCollection
用法
Dim instance As InkAnalyzerBase
Dim type As Guid
Dim strokeIds As Integer()
Dim returnValue As ContextNodeBaseCollection
returnValue = instance.FindNodesOfType(type, _
strokeIds)
public ContextNodeBaseCollection FindNodesOfType(
Guid type,
int[] strokeIds
)
public:
ContextNodeBaseCollection^ FindNodesOfType(
Guid type,
array<int>^ strokeIds
)
public ContextNodeBaseCollection FindNodesOfType(
Guid type,
int[] strokeIds
)
public function FindNodesOfType(
type : Guid,
strokeIds : int[]
) : ContextNodeBaseCollection
参数
- type
类型:System.Guid
要查找的上下文节点的类型。
- strokeIds
类型:array<System.Int32[]
包含笔画标识符的数组。
返回值
类型:System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection
一个 ContextNodeBaseCollection,它所包含的上下文节点元素具有指定的类型且包含其标识符位于 strokeIds 中的任何笔画。
备注
如果某个节点或其某个后代引用 strokeIds 中指定的笔画,则此方法在返回值中包含该节点。
示例
下面的示例在 InkAnalyzerBase (theInkAnalyzerBase) 中查找包含数组 theStrokeIds 中指定的笔画的所有行节点。
Dim lineNodes As System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection = _
theInkAnalyzerBase.FindNodesOfType( _
System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.Line, theStrokeIds)
System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection lineNodes =
theInkAnalyzerBase.FindNodesOfType(
System.Windows.Ink.AnalysisCore.ContextNodeTypeBase.Line, theStrokeIds);
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0
另请参见
参考
System.Windows.Ink.AnalysisCore 命名空间