Skip to main content
Tab

NewsItemCollection.IndexOfHeaderText(String) Method

Returns the specified item’s position within the collection. The item is identified by its header text.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public int IndexOfHeaderText(
    string headerText
)

Parameters

Name Type Description
headerText String

A string value that specifies the header text of the requested item.

Returns

Type Description
Int32

An integer value that specifies the item’s position within the collection. -1 if the collection doesn’t contain the item with the specified header text.

See Also