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

Declaration

public bool DockTo(
    Document document,
    Orientation orientation,
    int index
)
Public Function DockTo(
    document As Document,
    orientation As Orientation,
    index As Integer
) As Boolean

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