Skip to main content
Tab

ListEditItemCollectionBase.IndexOfTextWithTrim(String) Method

Removes all leading and trailing white-space characters from the passed string and searches for the first occurrence of the item with the identical value in the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public int IndexOfTextWithTrim(
    string text
)

Parameters

Name Type Description
text String

A String value that is the display text of the item which is to be located in the collection.

Returns

Type Description
Int32

The zero-based index of the first occurrence of the specified item within the collection, if found; otherwise negative one (-1).

See Also