업데이트: 2007년 11월
ExtendedProperty 개체의 GUID(Globally Unique Identifier)를 기반으로 ExtendedProperties 내에서 특정 ExtendedProperty 개체의 인덱스를 반환합니다.
네임스페이스: Microsoft.Ink
어셈블리: Microsoft.Ink(Microsoft.Ink.dll)
구문
‘선언
Public Function IndexOf ( _
id As Guid _
) As Integer
‘사용 방법
Dim instance As ExtendedProperties
Dim id As Guid
Dim returnValue As Integer
returnValue = instance.IndexOf(id)
public int IndexOf(
Guid id
)
public:
int IndexOf(
Guid id
)
public int IndexOf(
Guid id
)
public function IndexOf(
id : Guid
) : int
매개 변수
- id
형식: System.Guid
확인할 ExtendedProperty 개체의 GUID입니다.
반환 값
형식: System.Int32
ExtendedProperties 컬렉션 내에 있는 ExtendedProperty 개체의 인덱스를 반환합니다.
설명
ExtendedProperties 컬렉션에 없는 ExtendedProperty 개체의 GUID가 전달되면 이 메서드는 -1을 반환합니다.
예제
이 C# 예제에서는 변수에 theGuid라는 GUID가 할당되어 있고 Stroke 개체인 theStroke에 있는 특정 ExtendedProperty 개체의 인덱스를 찾습니다.
int theIndex = theStroke.ExtendedProperties.IndexOf(theGUID);
이 Microsoft® Visual Basic® .NET 예제에서는 변수에 theGuid라는 GUID가 할당되어 있고 Stroke 개체인 theStroke에 있는 특정 ExtendedProperty 개체의 인덱스를 찾습니다.
Dim theIndex As Integer = theStroke.ExtendedProperties.IndexOf(theGUID)
플랫폼
Windows Vista
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원