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

LayoutControl.GetItemByControl(Control, LayoutControlGroup) Method

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

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public LayoutControlItem GetItemByControl(
    Control control,
    LayoutControlGroup group
)

#Parameters

Name Type Description
control Control

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

group LayoutControlGroup

A LayoutControlGroup object representing the group within which the search is performed.

#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 specified group which holds the specified control.

See Also