IWidgetViewController.Dock(Document, Document, Orientation, Int32) Method
In This Article
Docks one widget to another according to the given orientation value.
Namespace: DevExpress.XtraBars.Docking2010.Views.Widget
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
bool Dock(
Document sourceDocument,
Document targetDocument,
Orientation orientation,
int index
)
#Parameters
Name | Type | Description |
---|---|---|
source |
Document | A Document that is the widget that needs to be docked. |
target |
Document | A Document that is the widget next to which the source |
orientation | Orientation | An Orientation enumerator value that specifies whether these two widgets will be aligned horizontally or vertically. |
index | Int32 | An Int32 value that specifies the docked widget’s position. |
#Returns
Type | Description |
---|---|
Boolean | true if a widget is successfully docked; otherwise, false. |
See Also