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
    类型:System.Int32
    要将该项移动到的索引。

备注

toIndex 的值始终是根据集合的当前状态希望项所在的位置。 这意味着如果将项移至更高索引,则不必确定从其当前位置移除项时索引将移动索引的事实。

.NET Framework 安全性

请参见

参考

ModelItemCollection 类

Microsoft.Windows.Design.Model 命名空间

其他资源

WPF 设计器扩展性体系结构