共用方式為


ModelItemCollection.Item 屬性

在衍生類別中覆寫時,在指定的索引上取得或設定項目。 這是相依性屬性。

命名空間:  Microsoft.Windows.Design.Model
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public MustOverride Default Property Item ( _
    index As Integer _
) As ModelItem
    Get
    Set
public abstract ModelItem this[
    int index
] { get; set; }
public:
virtual property ModelItem^ default[int index] {
    ModelItem^ get (int index) abstract;
    void set (int index, ModelItem^ value) abstract;
}
abstract Item : ModelItem with get, set
JScript 不支援索引屬性。

參數

  • index
    型別:System.Int32
    要設定或擷取的索引。

屬性值

型別:Microsoft.Windows.Design.Model.ModelItem
ModelItem ,表示指定之索引上的項目。

實作

IList<T>.Item[Int32]

相依性屬性資訊

識別項欄位

ItemProperty

中繼資料屬性設為 true

None

.NET Framework 安全性

請參閱

參考

ModelItemCollection 類別

Microsoft.Windows.Design.Model 命名空間

其他資源

WPF 設計工具擴充性架構