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 |
---|---|
Document |
A Document |
#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.