共用方式為


PropertyValueCollection.SetIndex 方法

在衍生類別中覆寫時,交換集合中物件的順序。

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

語法

'宣告
Public MustOverride Sub SetIndex ( _
    currentIndex As Integer, _
    newIndex As Integer _
)
public abstract void SetIndex(
    int currentIndex,
    int newIndex
)
public:
virtual void SetIndex(
    int currentIndex, 
    int newIndex
) abstract
abstract SetIndex : 
        currentIndex:int * 
        newIndex:int -> unit 
public abstract function SetIndex(
    currentIndex : int, 
    newIndex : int
)

參數

  • currentIndex
    型別:System.Int32
    第一個物件的索引。
  • newIndex
    型別:System.Int32
    第二個物件的索引。

.NET Framework 安全性

請參閱

參考

PropertyValueCollection 類別

Microsoft.Windows.Design.PropertyEditing 命名空間

其他資源

WPF 設計工具擴充性

屬性編輯架構