指定されたストローク データが含まれるインク リーフ ノードを返します。
名前空間 : 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