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
Declaration
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