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.v20.1.dll

Declaration

bool Move(
    Document document,
    int position
)
Function Move(
    document As Document,
    position As Integer
) As Boolean

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