InkAnalyzerBase.FindInkLeafNodes 方法 (array<Int32[])
返回包含指定笔画数据的墨迹叶节点。
命名空间: System.Windows.Ink.AnalysisCore
程序集: IACore(在 IACore.dll 中)
语法
声明
Public Function FindInkLeafNodes ( _
strokeIds As Integer() _
) As ContextNodeBaseCollection
用法
Dim instance As InkAnalyzerBase
Dim strokeIds As Integer()
Dim returnValue As ContextNodeBaseCollection
returnValue = instance.FindInkLeafNodes(strokeIds)
public ContextNodeBaseCollection FindInkLeafNodes(
int[] strokeIds
)
public:
ContextNodeBaseCollection^ FindInkLeafNodes(
array<int>^ strokeIds
)
public ContextNodeBaseCollection FindInkLeafNodes(
int[] strokeIds
)
public function FindInkLeafNodes(
strokeIds : int[]
) : ContextNodeBaseCollection
参数
- strokeIds
类型:array<System.Int32[]
墨迹叶节点包含的笔画的标识符。
返回值
类型:System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection
包含指定笔画数据的墨迹叶节点。
备注
墨迹叶节点的示例包括 Type 属性值为 InkWord、InkDrawing 和 InkBullet 的节点。
叶节点不包含子节点。
如果无任何节点包含笔画数据,则返回空 ContextNodeBaseCollection。同样,如果传入空笔画标识符数组,则返回空 ContextNodeBaseCollection。
示例
下面的示例在 InkAnalyzerBase (theInkAnalyzerBase) 中遍历包含 32 位有符号整数数组 theStrokeIds 所指定的笔画的所有墨迹叶节点。然后将这些墨迹叶节点中的所有笔画的标识符都添加到笔画标识符的扩展集合 expandedStrokeIds。
' Find the ink leaf context nodes that contain the strokes, and
' add all of the stroke identifiers for strokes in those nodes to
' a collection of stroke identifiers.
Dim expandedStrokeIds As New System.Collections.ArrayList()
Dim leafNode As System.Windows.Ink.AnalysisCore.ContextNodeBase
For Each leafNode In theInkAnalyzerBase.FindInkLeafNodes(theStrokeIds)
expandedStrokeIds.AddRange(leafNode.GetStrokeIds())
Next leafNode
// Find the ink leaf context nodes that contain the strokes, and
// add all of the stroke identifiers for strokes in those nodes to
// a collection of stroke identifiers.
System.Collections.ArrayList expandedStrokeIds =
new System.Collections.ArrayList();
foreach (System.Windows.Ink.AnalysisCore.ContextNodeBase leafNode
in theInkAnalyzerBase.FindInkLeafNodes(theStrokeIds))
{
expandedStrokeIds.AddRange(leafNode.GetStrokeIds());
}
平台
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0