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

DockController.DockAsDocument(BaseLayoutItem, BaseLayoutItem, DockType) Method

Docks the specified item as a tab into an existing or new DocumentGroup.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v24.2.dll

NuGet Package: DevExpress.Wpf.Docking

#Declaration

public bool DockAsDocument(
    BaseLayoutItem item,
    BaseLayoutItem target,
    DockType type
)

#Parameters

Name Type Description
item BaseLayoutItem

An item to be docked as a tab into a DocumentGroup.

target BaseLayoutItem

An item to which or next to which the first item is docked. This item can be a DocumentGroup or LayoutPanel object.

type DockType

Specifies the way the first item is docked to the second item.

#Returns

Type Description
Boolean

true, if the operation is a success; otherwise, false.

See Also