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

ITabbedViewController.Move(Document, Int32) Method

Moves the specified document to the specified visual position among other documents.

Namespace: DevExpress.XtraBars.Docking2010.Views.Tabbed

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

bool Move(
    Document document,
    int position
)

#Parameters

Name Type Description
document Document

A Document to be moved.

position Int32

A zero-based integer value that specifies the document’s new position among other documents.

#Returns

Type Description
Boolean

true if the operation was a success; otherwise, false.

#Remarks

For instance, the Move method comes in handy when you need to move a document to the first or last position among other documents. This can be accomplished by setting the position parameter to 0 and tabbedView1.Documents.Count-1, respectively.

To move a document to a specific group, use the ITabbedViewController.MoveToDocumentGroup or ITabbedViewController.Dock method.

See Also