다음을 통해 공유


ContextLinkCollection.ContextLinkCollectionEnumerator 클래스

업데이트: 2007년 11월

ContextLinkCollection을 반복하는 IEnumerator 인터페이스의 구현입니다.

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

구문

‘선언
Public Class ContextLinkCollectionEnumerator _
    Implements IEnumerator
‘사용 방법
Dim instance As ContextLinkCollection.ContextLinkCollectionEnumerator
public class ContextLinkCollectionEnumerator : IEnumerator
public ref class ContextLinkCollectionEnumerator : IEnumerator
public class ContextLinkCollectionEnumerator implements IEnumerator
public class ContextLinkCollectionEnumerator implements IEnumerator

예제

이 예제에서는 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);
}

상속 계층 구조

System.Object
  Microsoft.Ink.ContextLinkCollection.ContextLinkCollectionEnumerator

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

플랫폼

Windows Vista

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

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

ContextLinkCollection.ContextLinkCollectionEnumerator 멤버

Microsoft.Ink 네임스페이스

ContextLinkCollection