PropertyIdentifierCollection.InsertItem 方法

在集合中插入一个新的属性标识符。

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

语法

声明
Protected Overrides Sub InsertItem ( _
    index As Integer, _
    item As PropertyIdentifier _
)
protected override void InsertItem(
    int index,
    PropertyIdentifier item
)
protected:
virtual void InsertItem(
    int index, 
    PropertyIdentifier item
) override
abstract InsertItem : 
        index:int * 
        item:PropertyIdentifier -> unit 
override InsertItem : 
        index:int * 
        item:PropertyIdentifier -> unit 
protected override function InsertItem(
    index : int, 
    item : PropertyIdentifier
)

参数

  • index
    类型:System.Int32
    将 item 插入到的位置的索引。

异常

异常 条件
ArgumentNullException

item 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

ArgumentException

item 已存在于集合中。

.NET Framework 安全性

请参见

参考

PropertyIdentifierCollection 类

Microsoft.Windows.Design.Model 命名空间

其他资源

WPF 设计器扩展性体系结构