Back to Devexpress

LayoutControl.GetItemByRepositoryItem(RepositoryItem, LayoutControlGroup) Method

windowsforms-devexpress-dot-xtralayout-dot-layoutcontrol-dot-getitembyrepositoryitem-x28-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-devexpress-dot-xtralayout-dot-layoutcontrolgroup-x29.md

latest2.3 KB
Original Source

LayoutControl.GetItemByRepositoryItem(RepositoryItem, LayoutControlGroup) Method

Returns the layout item contained in the specified group and holds the control with the specified repository item.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public LayoutEditItem GetItemByRepositoryItem(
    RepositoryItem repositoryItem,
    LayoutControlGroup group
)
vb
Public Function GetItemByRepositoryItem(
    repositoryItem As RepositoryItem,
    group As LayoutControlGroup
) As LayoutEditItem

Parameters

NameTypeDescription
repositoryItemRepositoryItem

A RepositoryItem object that represents the repository item of the control whose parent layout item is to be returned.

| | group | LayoutControlGroup |

A LayoutControlGroup object that represents the group in which the search is performed.

|

Returns

TypeDescription
DevExpress.XtraLayout.LayoutEditItem

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

|

See Also

LayoutControl Class

LayoutControl Members

DevExpress.XtraLayout Namespace