Skip to main content

BaseContentContainer.GetRoot(IContentContainer) Method

Gets the root parent for the specific Content Container.

Namespace: DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

public static IContentContainer GetRoot(
    IContentContainer container
)

Parameters

Name Type Description
container DevExpress.XtraBars.Docking2010.Views.WindowsUI.IContentContainer

An IContentContainer whose root parent is to be obtained.

Returns

Type Description
DevExpress.XtraBars.Docking2010.Views.WindowsUI.IContentContainer

An IContentContainer object that is the target Content Container‘s root parent.

Remarks

You can get a parent for each Content Container via the BaseContentContainer.Parent property. If your application hierarchy is more complex than two-level Parent-Child relations and a child Content Container is itself a parent for other containers, use the GetRoot method to obtain the root parent for a container. The GetRoot method for top-most containers (whose BaseContentContainer.Parent property is null) returns these specific containers.

See Also