Back to Devexpress

DocumentManager.FromControl(Control) Method

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-documentmanager-dot-fromcontrol-x28-system-dot-windows-dot-forms-dot-control-x29.md

latest2.1 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public static DocumentManager FromControl(
    Control control
)
vb
Public Shared Function FromControl(
    control As Control
) As DocumentManager

Parameters

NameTypeDescription
controlControl

A control hosted within a Document.

|

Returns

TypeDescription
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

ContainerControl

DocumentManager Class

DocumentManager Members

DevExpress.XtraBars.Docking2010 Namespace