Freigeben über


ContextNodeCollection.ContextNodeCollectionEnumerator.Current-Eigenschaft

Das ContextNode-Objekt in der ContextNodeCollection, auf das der Enumerator zeigt.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

Syntax

'Declaration
Public ReadOnly Property Current As ContextNode
'Usage
Dim instance As ContextNodeCollection..::.ContextNodeCollectionEnumerator
Dim value As ContextNode

value = instance.Current
public ContextNode Current { get; }
public:
property ContextNode^ Current {
    ContextNode^ get ();
}
/** @property */
public ContextNode get_Current()
public function get Current () : ContextNode

Eigenschaftenwert

Typ: Microsoft.Ink.ContextNode
Das ContextNode-Objekt in der ContextNodeCollection, auf das der Enumerator zeigt.

Beispiele

Im folgenden Beispiel wird eine ContextNodeCollection durchlaufen, und die Bezeichner für alle InkWords im InkAnalyzertheInkAnalyzer werden abgerufen.

Dim wordIds As New ArrayList()
Dim inkWords As ContextNodeCollection = _
    theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.InkWord)
Dim enumerator As ContextNodeCollection.ContextNodeCollectionEnumerator = _
    inkWords.GetEnumerator()
While enumerator.MoveNext()
    Dim id As Guid = enumerator.Current.Id
    wordIds.Add(id)
End While
            ArrayList wordIds = new ArrayList();
            ContextNodeCollection inkWords =
                theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.InkWord);
            ContextNodeCollection.ContextNodeCollectionEnumerator enumerator =
                inkWords.GetEnumerator();
            while (enumerator.MoveNext())
            {
                Guid id = enumerator.Current.Id;
                wordIds.Add(id);
            }

Plattformen

Windows Vista

.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.

Versionsinformationen

.NET Framework

Unterstützt in: 3.0

Siehe auch

Referenz

ContextNodeCollection.ContextNodeCollectionEnumerator-Klasse

ContextNodeCollection.ContextNodeCollectionEnumerator-Member

Microsoft.Ink-Namespace