InkAnalyzer.FindNodesOfType - метод (Guid, StrokeCollection)
Обновлен: Ноябрь 2007
Returns a ContextNodeCollection that contains ContextNode objects of a specified type, namely, the strokes in the specified StrokeCollection.
Пространство имен: System.Windows.Ink
Сборка: IAWinFX (в IAWinFX.dll)
Синтаксис
'Декларация
Public Function FindNodesOfType ( _
type As Guid, _
strokes As StrokeCollection _
) As ContextNodeCollection
'Применение
Dim instance As InkAnalyzer
Dim type As Guid
Dim strokes As StrokeCollection
Dim returnValue As ContextNodeCollection
returnValue = instance.FindNodesOfType(type, _
strokes)
public ContextNodeCollection FindNodesOfType(
Guid type,
StrokeCollection strokes
)
public:
ContextNodeCollection^ FindNodesOfType(
Guid type,
StrokeCollection^ strokes
)
public ContextNodeCollection FindNodesOfType(
Guid type,
StrokeCollection strokes
)
public function FindNodesOfType(
type : Guid,
strokes : StrokeCollection
) : ContextNodeCollection
Параметры
- type
Тип: System.Guid
- strokes
Тип: System.Windows.Ink.StrokeCollection
Возвращаемое значение
Тип: System.Windows.Ink.ContextNodeCollection
A ContextNodeCollection containing the ContextNode objects of the type used to store the strokes in the strokes collection.
Заметки
If the node or one of its descendants references a stroke belonging to the strokes collection, this method includes that node in the return value.
Примеры
The following example finds LineNode objects that contain any of the strokes in a StrokeCollection, selectedStrokes, and marks them as red.
Dim selectedLines As ContextNodeCollection = theInkAnalyzer.FindNodesOfType(ContextNodeType.Line, selectedStrokes)
Dim line As LineNode
For Each line In selectedLines
Dim stroke As Stroke
For Each stroke In line.Strokes
stroke.DrawingAttributes.Color = Colors.Red
Next stroke
Next line
ContextNodeCollection selectedLines =
theInkAnalyzer.FindNodesOfType(ContextNodeType.Line,
selectedStrokes);
foreach (LineNode line in selectedLines)
{
foreach (Stroke stroke in line.Strokes)
stroke.DrawingAttributes.Color = Colors.Red;
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0