Tablets.TabletsEnumerator.MoveNext メソッド
列挙子インデックスをコレクション内の次のオブジェクトに移動します。
名前空間 : Microsoft.Ink
アセンブリ : Microsoft.Ink (Microsoft.Ink.dll 内)
構文
'宣言
Public Function MoveNext As Boolean
'使用
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
戻り値
型 : System.Boolean
インデックスの位置がオブジェクトを参照している場合は true に設定し、インデックスの位置がコレクションの末尾を参照している場合は false に設定します。
実装
解説
Tablets.TabletsEnumerator は、Tablets コレクションの反復処理をサポートし、IEnumerator インターフェイスを実装します。
このメソッドは MoveNext から継承されます。
例
この例では、Tablets コレクションの IEnumerator を使用して、Tablets コレクション allTablets を反復処理し、システムにアタッチされている各タブレット デバイスの名前を使用して、ListBox オブジェクト listBoxTablets を設定します。
' 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);
}
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0