LayoutControl.GetItemByControl(Control) Method

Returns the layout item contained within the root group which holds the specified control.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

public LayoutControlItem GetItemByControl(
    Control control
)
Public Function GetItemByControl(
    control As Control
) As LayoutControlItem

Parameters

Name Type Description
control Control

A Control object which represents the control whose parent layout item is to be returned.

Returns

Type Description
LayoutControlItem

A LayoutControlItem object which contains the specified control. null (Nothing in Visual Basic) if there is no layout item within the root group which holds the specified control.

Implements

DevExpress.XtraLayout.ILayoutControl.GetItemByControl(Control)
See Also