Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

NuGet Package: DevExpress.Win.Navigation

#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