Progress® Telerik® Reporting R2 2017

ReportItemBaseItemCollectionIndexOfKey Method

Retrieves the index of the first occurrence of the specified item within the collection.

Namespace:  Telerik.Reporting
Assembly:  Telerik.Reporting (in Telerik.Reporting.dll)

Syntax

public virtual int IndexOfKey(
	string key
)

Parameters

key
Type: SystemString
The name of the report item to search for.

Return Value

Type: Int32
The zero-based index of the first occurrence of the report item with the specified name in the collection.

Remarks

The key comparison is not case-sensitive. If the key parameter is a null reference (Nothing in Visual Basic) or an empty string, or an item with the specified key is not found, IndexOfKey returns -1.

The Name property of a ReportItemBase corresponds to the key for a ReportItemBase in the ReportItemBaseItemCollection.

See Also