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.v21.2.dll


bool Move(
    Document document,
    int position


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.


Type Description

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


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