InkAnalyzerBase.FindLeafNodes (Método)
Actualización: noviembre 2007
Devuelve todos los nodos hoja, que son los objetos ContextNodeBase que no tienen ningún nodo secundario.
Espacio de nombres: System.Windows.Ink.AnalysisCore
Ensamblado: IACore (en IACore.dll)
Sintaxis
'Declaración
Public Function FindLeafNodes As ContextNodeBaseCollection
'Uso
Dim instance As InkAnalyzerBase
Dim returnValue As ContextNodeBaseCollection
returnValue = instance.FindLeafNodes()
public ContextNodeBaseCollection FindLeafNodes()
public:
ContextNodeBaseCollection^ FindLeafNodes()
public ContextNodeBaseCollection FindLeafNodes()
public function FindLeafNodes() : ContextNodeBaseCollection
Valor devuelto
Tipo: System.Windows.Ink.AnalysisCore.ContextNodeBaseCollection
Objeto ContextNodeBaseCollection que contiene todos los nodos hoja.
Ejemplos
En el ejemplo siguiente, se recorren en bucle todos los nodos hoja de un objeto InkAnalyzerBase, theInkAnalyzerBase, y se encuentra el que tiene el límite inferior más bajo.
' 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];
}
}
Plataformas
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
Información de versión
.NET Framework
Compatible con: 3.0
Vea también
Referencia
System.Windows.Ink.AnalysisCore (Espacio de nombres)