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

Document.DockTo(Document, Orientation, Int32) Method

Docks this widget to another widget using the given orientation setting.

Namespace: DevExpress.XtraBars.Docking2010.Views.Widget

Assembly: DevExpress.XtraBars.v18.2.dll

Declaration

public bool DockTo(
    Document document,
    Orientation orientation,
    int index
)

Parameters

Name Type Description
document Document

A Document that is the widget next to which this widget should be docked.

orientation Orientation

An Orientation enumeration value that specifies whether these two widgets should align vertically or horizontally.

index Int32

An Int32 value that specifies the docked widget’s position.

Returns

Type Description
Boolean

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

See Also