Skip to main content
All docs
V19.2

DocumentManager.FromCurrentControl(Control, Boolean, Boolean) Method

Retrieves a DocumentManager component from the target control.

Namespace: DevExpress.XtraBars.Docking2010

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

public static DocumentManager FromCurrentControl(
    Control control,
    bool useParentForm = true,
    bool useChildControl = true
)

Parameters

Name Type Description
control Control

A Control from which to retrieve a DocumentManager component.

Optional Parameters

Name Type Default Description
useParentForm Boolean True

true, to search for the DocumentManager component not only among the target control’s children, but on its parent form as well; otherwise, false.

useChildControl Boolean True

true, to search for the DocumentManager component among all children owned by the target control; otherwise, false.

Returns

Type Description
DocumentManager

A retrieved DocumentManager component.

See Also