ExtendedProperty オブジェクトのグローバル一意識別子 (GUID) に基づいて、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