Skip to main content
Tab

NewsItemCollection.IndexOfDate(DateTime) Method

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

public int IndexOfDate(
    DateTime date
)

#Parameters

Name Type Description
date DateTime

A DateTime structure that specifies the date 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 date.

See Also