Skip to main content
A newer version of this page is available. .

IWidgetViewController.Dock(Document, Document, Orientation, Boolean) Method

Docks one widget document aside another document using the specific orientation setting.

Namespace: DevExpress.XtraBars.Docking2010.Views.Widget

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

bool Dock(
    Document sourceDocument,
    Document targetDocument,
    Orientation orientation,
    bool after
)

Parameters

Name Type Description
sourceDocument Document

A document that should be docked to another document.

targetDocument Document

A document to which the first document should be docked.

orientation Orientation

An Orientation enumerator value that specifies whether these documents should be aligned horizontally or vertically.

after Boolean

true, to place the sourceDocument after the targetDocument; otherwise, false.

Returns

Type Description
Boolean

true, if the document was successfully docked; otherwise, false.

See Also