Skip to main content
A newer version of this page is available. .
Tab

NewsItemCollection.IndexOf(NewsItem) Method

Returns the specified item’s position within the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

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