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