[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.ReportItemCollection.Item

this Property

this[int]

Gets or sets a specific ReportItem object in the ReportItemCollection by position.

Declaration
public ReportItem this[int index] { get; set; }
Parameters
Type Name Description
int index

A zero-based int index of the ReportItem to return or set.

Property Value
Type Description
ReportItem

A ReportItem object at the specified position.

Implements
Examples
ReportItemCollection collection = new ReportItemCollection();
collection.Add(new TextBox());
ReportItem item = collection[0];

this[string]

Gets the ReportItem object using the specified name.

Declaration
public ReportItem this[string name] { get; }
Parameters
Type Name Description
string name

A string value indicating the name of the ReportItem to get.

Property Value
Type Description
ReportItem

A ReportItem object with the specified name.

Examples
ReportItemCollection collection = new ReportItemCollection();
ReportItem item = collection["itemName"];