Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Collection.Move(Int32, Int32) Method

Moves the item to another position within the list.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

public virtual void Move(
    int fromIndex,
    int toIndex
)

#Parameters

Name Type Description
fromIndex Int32

An integer value specifying the zero-based index of the item to be moved.

toIndex Int32

An integer value specifying the zero-based destination index of the moved item.

#Remarks

If at least one of the parameter values is either negative or greater than the last available index, the Move method performs nothing.

See Also