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

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.v24.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