[]
Gets or sets a specific ReportItem object in the ReportItemCollection by position.
public ReportItem this[int index] { get; set; }
| Type | Name | Description |
|---|---|---|
| int | index | A zero-based int index of the ReportItem to return or set. |
| Type | Description |
|---|---|
| ReportItem | A ReportItem object at the specified position. |
ReportItemCollection collection = new ReportItemCollection();
collection.Add(new TextBox());
ReportItem item = collection[0];
Gets the ReportItem object using the specified name.
public ReportItem this[string name] { get; }
| Type | Name | Description |
|---|---|---|
| string | name | A string value indicating the name of the ReportItem to get. |
| Type | Description |
|---|---|
| ReportItem | A ReportItem object with the specified name. |
ReportItemCollection collection = new ReportItemCollection();
ReportItem item = collection["itemName"];