Este tema aún no ha recibido ninguna valoración - Valorar este tema

ContextNodeCollection (Clase)

Contains a collection of ContextNode objects that are the result of an ink analysis.

Espacio de nombres: System.Windows.Ink
Ensamblado: IAWinFX (en iawinfx.dll)
Espacio de nombres XML:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public class ContextNodeCollection : ICollection, IEnumerable
public class ContextNodeCollection implements ICollection, IEnumerable
public class ContextNodeCollection implements ICollection, IEnumerable
No aplicable.

The following example shows how to loop through a ContextNodeCollection from the InkAnalyzer. FindNodesOfType method of an InkAnalyzer, theInkAnalyzer. The example loops through a collection of LineNode objects and, if two consecutive InkWordNode objects are the same word, then it makes their strokes red.

// If two identical ink words occur next to each other, mark them as red.
// Note: This doesn't actually look for pairs that go across two lines.
ContextNodeCollection lines =
    theInkAnalyzer.FindNodesOfType(ContextNodeType.Line);
foreach (ContextNode lineNode in lines)
{
    InkWordNode previousWord = null;
    foreach (InkWordNode inkWord in
             theInkAnalyzer.FindNodesOfType(ContextNodeType.InkWord, lineNode))
    {
        if (previousWord != null &&
            previousWord.GetRecognizedString() == inkWord.GetRecognizedString())
        {
            foreach (Stroke stroke in previousWord.Strokes)
                stroke.DrawingAttributes.Color = Colors.Red;
            foreach (Stroke stroke in inkWord.Strokes)
                stroke.DrawingAttributes.Color = Colors.Red;
        }
        previousWord = inkWord;
    }
}

System.Object
  System.Windows.Ink.ContextNodeCollection
Los miembros estáticos públicos (Shared en Visual Basic) de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancias sean seguros para la ejecución de subprocesos.

Windows XP Media Center

Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.

.NET Framework

Compatible con: 3.0

Referencia

ContextNodeCollection (Miembros)
System.Windows.Ink (Espacio de nombres)
ContextNode
O:System.Windows.Ink.InkAnalyzer.FindNodes
O:System.Windows.Ink.InkAnalyzer.FindNodesOfType
¿Te ha resultado útil?
(Caracteres restantes: 1500)

Adiciones de comunidad

AGREGAR
© 2013 Microsoft. Reservados todos los derechos.