Skip to main content
Tab

LayoutGroupBase.FindItemByPath(String) Method

OBSOLETE

Use the FindItemOrGroupByName method instead.

Returns a layout item by its path.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[Obsolete("Use the FindItemOrGroupByName method instead.")]
public LayoutItemBase FindItemByPath(
    string path
)

Parameters

Name Type Description
path String

A string value specifying the layout item’s path within the LayoutGroupBase.Items collection.

Returns

Type Description
LayoutItemBase

An LayoutItemBase object representing the layout item specified by its path.

Remarks

Use the FindItemByPath method to get an item by its path. The path is the item indexes (from the group children level item to the sought-for item) separated by the ‘_’ symbol.

The code sample below returns a reference to the third item of the AddressGroup group.

var layoutItem = AddressGroup.FindItemByPath("2");
Dim layoutItem = AddressGroup.FindItemByPath("2")
See Also