InkAnalyzerBase.FindLeafNodes - метод
Обновлен: Ноябрь 2007
Returns all of the leaf nodes, which are the ContextNodeBase objects that have no child nodes.
Пространство имен: System.Windows.Ink.AnalysisCore
Сборка: IACore (в IACore.dll)
Синтаксис
'Декларация
Public Function FindLeafNodes As ContextNodeBaseCollection
'Применение
Dim instance As InkAnalyzerBase
Dim returnValue As ContextNodeBaseCollection
returnValue = instance.FindLeafNodes()
public ContextNodeBaseCollection FindLeafNodes()
public:
ContextNodeBaseCollection^ FindLeafNodes()
public ContextNodeBaseCollection FindLeafNodes()
public function FindLeafNodes() : ContextNodeBaseCollection
Возвращаемое значение
Тип: System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection
A ContextNodeBaseCollection that contains all the leaf nodes.
Примеры
The following example loops through all the leaf nodes of an InkAnalyzerBase, theInkAnalyzerBase, and finds the one with the lowest lower bound.
' Find the leaf context node that has the lowest bottom bound.
' In the ink coordinates system a higher value is physically lower.
Dim lowest As Integer = Integer.MinValue
Dim lowestNode As System.Windows.Ink.AnalysisCore.ContextNodeBase = Nothing
Dim leafNode As System.Windows.Ink.AnalysisCore.ContextNodeBase
For Each leafNode In theInkAnalyzerBase.FindInkLeafNodes()
' Find lowest node. Note, AnalysisRegionBase.GetBounds() returns an
' array containing the left, top, right, and bottom bounds in order.
If leafNode.Location.GetBounds()(3) > lowest Then
lowestNode = leafNode
lowest = leafNode.Location.GetBounds()(3)
End If
Next leafNode
// Find the leaf context node that has the lowest bottom bound.
// In the ink coordinates system a higher value is physically lower.
int lowest = int.MinValue;
System.Windows.Ink.AnalysisCore.ContextNodeBase lowestNode = null;
foreach (System.Windows.Ink.AnalysisCore.ContextNodeBase leafNode
in theInkAnalyzerBase.FindInkLeafNodes())
{
// Find lowest node. Note, AnalysisRegionBase.GetBounds() returns an
// array containing the left, top, right, and bottom bounds in order.
if (leafNode.Location.GetBounds()[3] > lowest)
{
lowestNode = leafNode;
lowest = leafNode.Location.GetBounds()[3];
}
}
Платформы
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0
См. также
Ссылки
System.Windows.Ink.AnalysisCore - пространство имен