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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.Model 命名空間