ModelItemCollection.Item 属性

更新:2007 年 11 月

当在派生类中重写时,获取或设置指定索引处的项。这是一个依赖项属性。

命名空间:  Microsoft.Windows.Design.Model
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public MustOverride Default Property Item ( _
    index As Integer _
) As ModelItem
用法
Dim instance As ModelItemCollection
Dim index As Integer
Dim value As ModelItem

value = instance(index)

instance(index) = value
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;
}
JScript 不支持索引属性。

参数

  • index
    类型:System.Int32

    要设置或检索的索引。

属性值

类型:Microsoft.Windows.Design.Model.ModelItem

一个 ModelItem,表示指定索引处的项。

实现

IList<T>.Item[Int32]

依赖项属性信息

标识符字段

ItemProperty

设置为 true 的元数据属性

权限

另请参见

参考

ModelItemCollection 类

ModelItemCollection 成员

Microsoft.Windows.Design.Model 命名空间

其他资源

WPF 设计器扩展性体系结构