Skip to main content
Tab

NewsItemCollection.IndexOf(NewsItem) Method

Returns the specified item’s position within the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public int IndexOf(
    NewsItem item
)

Parameters

Name Type Description
item NewsItem

A NewsItem object to locate in the collection.

Returns

Type Description
Int32

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

See Also