DXCollectionView.MoveItem(Int32, Int32, Action, Boolean) Method
In This Article
Moves the item with the specified index to the specified position within the DXCollectionView with the specified action and animation.
Namespace: DevExpress.Maui.CollectionView
Assembly: DevExpress.Maui.CollectionView.dll
NuGet Package: DevExpress.Maui.CollectionView
#Declaration
C#
public void MoveItem(
int fromItemHandle,
int toItemHandle,
Action completion,
bool animate = true
)
#Parameters
Name | Type | Description |
---|---|---|
from |
Int32 | The current index of the item. |
to |
Int32 | The new index of the item. |
completion | Action | The action that executes when the item is moved. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
animate | Boolean | True | The animation that is displayed when the item is moved. |
See Also