ContextLinkCollection 内の指定したインデックスにある ContextLink オブジェクトを取得します。
名前空間 : System.Windows.Ink
アセンブリ : IAWinFX (IAWinFX.dll 内)
構文
'宣言
Public ReadOnly Property Item ( _
index As Integer _
) As ContextLink
'使用
Dim instance As ContextLinkCollection
Dim index As Integer
Dim value As ContextLink
value = instance.Item(index)
public ContextLink Item[
int index
] { get; }
public:
property ContextLink^ Item[int index] {
ContextLink^ get (int index);
}
/** @property */
public ContextLink get_Item(
int index
)
JScript では、インデックス付きプロパティはサポートされません。
パラメータ
- index
型 : System.Int32
ContextLink オブジェクトの、0 から始まるインデックス。
プロパティ値
型 : System.Windows.Ink.ContextLink
ContextLinkCollection 内の指定したインデックスにある ContextLink オブジェクト。
解説
このトピックの例に示すように、コレクションのインデクサを使用することにより、Item プロパティにアクセスできます。
インデックスが ContextLinkCollection コレクションの既存のメンバと一致しない場合は [ArgumentOutOfRangeException] がスローされます。
例
次の例では、ContextLinkCollection、links 内の最初のノードを取得します。
Dim firstLink As ContextLink = links(0)
ContextLink firstLink = links[0];
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0