다음을 통해 공유


ContextNodeBaseCollection.IndexOf 메서드 (ContextNodeBase)

업데이트: 2007년 11월

ContextNodeBaseCollection 내에 있는 특정 ContextNodeBase 개체의 인덱스를 반환합니다.

네임스페이스:  System.Windows.Ink.AnalysisCore
어셈블리:  IACore(IACore.dll)

구문

‘선언
Public Function IndexOf ( _
    node As ContextNodeBase _
) As Integer
‘사용 방법
Dim instance As ContextNodeBaseCollection
Dim node As ContextNodeBase
Dim returnValue As Integer

returnValue = instance.IndexOf(node)
public int IndexOf(
    ContextNodeBase node
)
public:
int IndexOf(
    ContextNodeBase^ node
)
public int IndexOf(
    ContextNodeBase node
)
public function IndexOf(
    node : ContextNodeBase
) : int

매개 변수

반환 값

형식: System.Int32
ContextNodeBaseCollection 내에 있는 특정 ContextNodeBase 개체의 인덱스입니다.

설명

ContextNodeBaseCollection에 없는 ContextNodeBase 개체가 전달되면 이 메서드는 -1을 반환합니다.

예제

다음 예제에서는 이름이 nodes인 ContextNodeBaseCollection에 포함될 수 있는 myNode라는 특정 ContextNodeBase의 인덱스를 찾는 방법을 보여 줍니다.

Dim index As Integer = nodes.IndexOf(myNode)
            int index = nodes.IndexOf(myNode);

플랫폼

Windows Vista, Windows XP SP2, Windows Server 2003

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

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

ContextNodeBaseCollection 클래스

ContextNodeBaseCollection 멤버

IndexOf 오버로드

System.Windows.Ink.AnalysisCore 네임스페이스