Поделиться через


InkAnalyzer.FindInkLeafNodes - метод (StrokeCollection)

Обновлен: Ноябрь 2007

Returns a ContextNodeCollection containing ink leaf nodes that contain certain specified strokes.

Пространство имен:  System.Windows.Ink
Сборка:  IAWinFX (в IAWinFX.dll)

Синтаксис

'Декларация
Public Function FindInkLeafNodes ( _
    strokes As StrokeCollection _
) As ContextNodeCollection
'Применение
Dim instance As InkAnalyzer
Dim strokes As StrokeCollection
Dim returnValue As ContextNodeCollection

returnValue = instance.FindInkLeafNodes(strokes)
public ContextNodeCollection FindInkLeafNodes(
    StrokeCollection strokes
)
public:
ContextNodeCollection^ FindInkLeafNodes(
    StrokeCollection^ strokes
)
public ContextNodeCollection FindInkLeafNodes(
    StrokeCollection strokes
)
public function FindInkLeafNodes(
    strokes : StrokeCollection
) : ContextNodeCollection

Параметры

Возвращаемое значение

Тип: System.Windows.Ink.ContextNodeCollection
The ink leaf nodes that contain the specified strokes.

Заметки

Examples of ink leaf nodes are InkWordNode, InkDrawingNode, and InkBulletNode.

Leaf nodes do not contain child nodes.

An exception is thrown if strokes is nullссылка null (Nothing в Visual Basic). If no nodes contain the strokes, an empty ContextNodeCollection is returned. Similarly, if an empty StrokeCollection collection is passed in, an empty ContextNodeCollection is returned.

Примеры

The following example calls FindInkLeafNodes to find the ink leaf nodes in an InkAnalyzer (named theInkAnalyzer) containing strokes that match those in the StrokeCollection (selectedStrokes). It then changes the color of the matching strokes to red.

For Each node As ContextNode In theInkAnalyzer.FindInkLeafNodes(selectedStrokes)
    For Each Stroke As Stroke In node.Strokes
        Stroke.DrawingAttributes.Color = Colors.Red
    Next Stroke
Next node
foreach (ContextNode node in theInkAnalyzer.FindInkLeafNodes(selectedStrokes))
{
    foreach (Stroke stroke in node.Strokes)
    {
        stroke.DrawingAttributes.Color = Colors.Red;
    }
}

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

InkAnalyzer Класс

InkAnalyzer - члены

FindInkLeafNodes - перегрузка

System.Windows.Ink - пространство имен

InkAnalyzer.FindLeafNodes

InkAnalyzer.FindNode

InkAnalyzer.FindNodes

InkAnalyzer.FindNodesOfType