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.v25.1.dll
NuGet Package: DevExpress.Web
Declaration
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