共用方式為


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 設計工具擴充性架構