共用方式為


ModelItemCollection.Move 方法

在衍生類別中覆寫時,將項目移至新的索引。

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

語法

'宣告
Public MustOverride Sub Move ( _
    fromIndex As Integer, _
    toIndex As Integer _
)
public abstract void Move(
    int fromIndex,
    int toIndex
)
public:
virtual void Move(
    int fromIndex, 
    int toIndex
) abstract
abstract Move : 
        fromIndex:int * 
        toIndex:int -> unit 
public abstract function Move(
    fromIndex : int, 
    toIndex : int
)

參數

  • fromIndex
    型別:System.Int32
    要移動之項目的索引。

備註

toIndex 的值是為您要放置項目的位置 (依照集合的目前狀態)。 這表示如果將項目移至更高的索引,您不必擔心從項目的目前位置移除項目時會弄亂索引。

.NET Framework 安全性

請參閱

參考

ModelItemCollection 類別

Microsoft.Windows.Design.Model 命名空間

其他資源

WPF 設計工具擴充性架構