次の方法で共有


ContextLinkBaseCollection.IndexOf メソッド

ContextLinkBaseCollection 内の特定の ContextLinkBase オブジェクトのインデックスを返します。

名前空間 :  System.Windows.Ink.AnalysisCore
アセンブリ :  IACore (IACore.dll 内)

構文

'宣言
Public Function IndexOf ( _
    link As ContextLinkBase _
) As Integer
'使用
Dim instance As ContextLinkBaseCollection
Dim link As ContextLinkBase
Dim returnValue As Integer

returnValue = instance.IndexOf(link)
public int IndexOf(
    ContextLinkBase link
)
public:
int IndexOf(
    ContextLinkBase^ link
)
public int IndexOf(
    ContextLinkBase link
)
public function IndexOf(
    link : ContextLinkBase
) : int

パラメータ

戻り値

型 : System.Int32
ContextLinkBaseCollection 内の特定の ContextLinkBase オブジェクトのインデックス。

解説

ContextLinkBaseCollection コレクション内に存在しない ContextLinkBase オブジェクトが渡された場合、このメソッドは -1 を返します。

次の例では、links という名前の ContextLinkBaseCollection に格納されている可能性のある、myLink という名前の特定の ContextLinkBase のインデックスを検索する方法を示します。

Dim index As Integer = links.IndexOf(myLink)
int index = links.IndexOf(myLink);

プラットフォーム

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

ContextLinkBaseCollection クラス

ContextLinkBaseCollection メンバ

System.Windows.Ink.AnalysisCore 名前空間