[]
Determines the index of a specific ReportItem object in the ReportItemCollection.
public virtual int IndexOf(ReportItem value)
Type | Name | Description |
---|---|---|
ReportItem | value | A ReportItem object to locate in the ReportItemCollection. |
Type | Description |
---|---|
int | An int value indicating the index of the entry if it was found in the collection;
otherwise, |
ReportItemCollection collection = new ReportItemCollection();
ReportItem item = new ReportItem();
int index = collection.IndexOf(item);