InkAnalyzer.FindLeafNodes - метод
Обновлен: Ноябрь 2007
Returns all of the leaf nodes, which are the ContextNode objects that have no child nodes.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)
Синтаксис
'Декларация
Public Function FindLeafNodes As ContextNodeCollection
'Применение
Dim instance As InkAnalyzer
Dim returnValue As ContextNodeCollection
returnValue = instance.FindLeafNodes()
public ContextNodeCollection FindLeafNodes()
public:
ContextNodeCollection^ FindLeafNodes()
public ContextNodeCollection FindLeafNodes()
public function FindLeafNodes() : ContextNodeCollection
Возвращаемое значение
Тип: Microsoft.Ink.ContextNodeCollection
A ContextNodeCollection that contains all the leaf nodes.
Примеры
The following example loops through all the leaf nodes of an InkAnalyzer, theInkAnalyzer, and adds those that extend below an integer, yValue, to an ArrayList, nodesBelowYValue.
Dim nodesBelowYValue As New ArrayList()
Dim leafNode As ContextNode
For Each leafNode In theInkAnalyzer.FindLeafNodes()
' Add to collection if bottom is lower than yValue
If leafNode.Location.GetBounds().Bottom > yValue Then
nodesBelowYValue.Add(leafNode)
End If
Next leafNode
ArrayList nodesBelowYValue = new ArrayList();
foreach (ContextNode leafNode in theInkAnalyzer.FindLeafNodes())
{
// Add to collection if bottom is lower than yValue
if (leafNode.Location.GetBounds().Bottom > yValue)
{
nodesBelowYValue.Add(leafNode);
}
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0