Tab

ASPxFormLayout.FindItemByPath(String) Method

Obsolete. Returns a layout item by its path.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

[Obsolete("Use the FindItemOrGroupByName method instead.")]
public LayoutItemBase FindItemByPath(
    string path
)
<Obsolete("Use the FindItemOrGroupByName method instead.")>
Public Function FindItemByPath(
    path As String
) As LayoutItemBase

Parameters

Name Type Description
path String

A string value specifying the layout item's path that is layout item indexes separated by the '_' symbol.

Returns

Type Description
LayoutItemBase

An LayoutItemBase object that is a layout item with the specified path.

Remarks

Use the FindItemByPath method to get an item by its path. The path is the item indexes (from the root-level item to item being sought) separated by the '_' symbol.

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

var layoutItem = exampleFormLayout.FindItemByPath("0_2");
Dim layoutItem = exampleFormLayout.FindItemByPath("0_2")
See Also