共用方式為


ContextLinkBaseCollection.Item 屬性

取得 ContextLinkBaseCollection 中具有指定之索引或識別項的 ContextLinkBase 物件。

命名空間:  System.Windows.Ink.AnalysisCore
組件:  IACore (在 IACore.dll 中)

語法

'宣告
Public ReadOnly Property Item ( _
    index As Integer _
) As ContextLinkBase
'用途
Dim instance As ContextLinkBaseCollection
Dim index As Integer
Dim value As ContextLinkBase

value = instance.Item(index)
public ContextLinkBase Item[
    int index
] { get; }
public:
property ContextLinkBase^ Item[int index] {
    ContextLinkBase^ get (int index);
}
/** @property */
public ContextLinkBase get_Item(
    int index
)
JScript 不支援索引屬性。

參數

屬性值

型別:System.Windows.Ink.AnalysisCore.ContextLinkBase
ContextLinkBaseCollection 內位於指定索引處的 ContextLinkBase 物件。

備註

您可以使用集合的索引子存取 Item,如下列範例所示。

如果索引與 ContextLinkBaseCollection 的現有成員不相符,則會擲回 System.ArgumentOutOfRangeException (英文)。

範例

下列範例會取得 ContextLinkBaseCollection (變數名稱為 links) 內的第一個節點。

Dim firstLink As ContextLinkBase = links(0)
ContextLinkBase firstLink = links[0];

平台

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 命名空間