共用方式為


PropertyIdentifierCollection.SetItem 方法

設定指定索引處的屬性識別項。

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

語法

'宣告
Protected Overrides Sub SetItem ( _
    index As Integer, _
    item As PropertyIdentifier _
)
protected override void SetItem(
    int index,
    PropertyIdentifier item
)
protected:
virtual void SetItem(
    int index, 
    PropertyIdentifier item
) override
abstract SetItem : 
        index:int * 
        item:PropertyIdentifier -> unit 
override SetItem : 
        index:int * 
        item:PropertyIdentifier -> unit 
protected override function SetItem(
    index : int, 
    item : PropertyIdentifier
)

參數

  • index
    型別:System.Int32
    要設定為 item 的索引。

例外狀況

例外狀況 條件
ArgumentNullException

item 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

ArgumentException

item 已存在於集合中。

.NET Framework 安全性

請參閱

參考

PropertyIdentifierCollection 類別

Microsoft.Windows.Design.Model 命名空間

其他資源

WPF 設計工具擴充性架構