Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Aggiornamento: novembre 2007
Sposta l'indice dell'enumeratore sull'oggetto successivo dell'insieme.
Spazio dei nomi: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Sintassi
'Dichiarazione
Public Function MoveNext As Boolean
'Utilizzo
Dim instance As Tablets..::.TabletsEnumerator
Dim returnValue As Boolean
returnValue = instance.MoveNext()
public bool MoveNext()
public:
virtual bool MoveNext() sealed
public final boolean MoveNext()
public final function MoveNext() : boolean
Valore restituito
Tipo: System.Boolean
Impostare su true se la posizione dell'indice fa riferimento a un oggetto; su false se la posizione dell'indice fa riferimento alla fine dell'insieme.
Implementa
Note
L'oggetto Tablets.TabletsEnumerator supporta lo scorrimento di un insieme Tablets e implementa l'interfaccia IEnumerator.
Questo metodo eredita dall'oggetto MoveNext.
Esempi
In questo esempio viene utilizzato l'oggetto IEnumerator per l'insieme Tablets per scorrere l'insieme Tablets, allTablets, e compilare l'oggetto ListBox, listBoxTablets con i nomi di ciascun dispositivo del Tablet PC associato al sistema.
' Calling the constructor automatically fills the
' Tablets collection with the available Tablet objects.
Dim allTablets As Tablets = New Tablets()
' clear the list box
Me.listBoxTablets.Items.Clear()
' populate the list box with the name of each tablet
' version using GetEnumerator()
Dim theTabletsEnumerator As IEnumerator = allTablets.GetEnumerator()
While (theTabletsEnumerator.MoveNext())
Dim T As Tablet = theTabletsEnumerator.Current
Me.listBoxTablets.Items.Add(T.Name)
End While
// Calling the constructor automatically fills the
// Tablets collection with the available Tablet objects.
Tablets allTablets = new Tablets();
// clear the list box
this.listBoxTablets.Items.Clear();
// populate the list box with the name of each tablet
// version using GetEnumerator()
IEnumerator theTabletsEnumerator = allTablets.GetEnumerator();
while (theTabletsEnumerator.MoveNext())
{
Tablet T = (Tablet)theTabletsEnumerator.Current;
this.listBoxTablets.Items.Add(T.Name);
}
Piattaforme
Windows Vista
.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.
Informazioni sulla versione
.NET Framework
Supportato in: 3.0
Vedere anche
Riferimenti
Tablets.TabletsEnumerator Classe