Skip to main content

DocumentManager.FromControl(Control) Method

Gets the DocumentManager associated with the specified control or any of the control’s parents.

Namespace: DevExpress.XtraBars.Docking2010

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public static DocumentManager FromControl(
    Control control
)

Parameters

Name Type Description
control Control

A control hosted within a Document.

Returns

Type Description
DocumentManager

A DocumentManager object associated with the specified control or any of the control’s parents. The null value if neither the control nor its parents are associated with a DocumentManager.

Remarks

The FromControl method checks if the specified control or any of the control’s parents are associated with a DocumentManager. The method returns the associated DocumentManager. The method returns null if no association with a DocumentManager is found.

See Also