다음을 통해 공유


ContextLinkCollection.ContextLinkCollectionEnumerator.MoveNext 메서드

업데이트: 2007년 11월

열거자 인덱스를 컬렉션의 다음 개체로 이동합니다.

네임스페이스:  Microsoft.Ink
어셈블리:  Microsoft.Ink.Analysis(Microsoft.Ink.Analysis.dll)

구문

‘선언
Public Function MoveNext As Boolean
‘사용 방법
Dim instance As ContextLinkCollection..::.ContextLinkCollectionEnumerator
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입니다.

구현

IEnumerator.MoveNext()

예제

이 예제에서는 ContextLinkCollection인 links의 Systems.Collections.IEnumerator를 가져와서 컬렉션에 들어 있는 각 ContextLink 개체를 ArrayList에 배치하는 데 사용합니다.

Dim customLinks As New ArrayList()
' Version using GetEnumerator()
Dim enumerator As ContextLinkCollection.ContextLinkCollectionEnumerator = _
    links.GetEnumerator()
enumerator.Reset()
While enumerator.MoveNext()
    Dim aLink As ContextLink = CType(enumerator.Current, ContextLink)
    customLinks.Add(aLink)
End While
ArrayList customLinks = new ArrayList();
// Version using GetEnumerator()
ContextLinkCollection.ContextLinkCollectionEnumerator
    enumerator = links.GetEnumerator();
enumerator.Reset();
while (enumerator.MoveNext())
{
    ContextLink aLink = ((ContextLink)enumerator.Current);
    customLinks.Add(aLink);
}

플랫폼

Windows Vista

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

ContextLinkCollection.ContextLinkCollectionEnumerator 클래스

ContextLinkCollection.ContextLinkCollectionEnumerator 멤버

Microsoft.Ink 네임스페이스