語言

ReportItemCollection.Item[Int32] 屬性

定義

從位於索引指定位置的集合中取得指定的報告項目。 在 C# 中,這個屬性就是類別的 ReportItemCollection 索引器。

public:
 property Microsoft::ReportingServices::ReportRendering::ReportItem ^ default[int] { Microsoft::ReportingServices::ReportRendering::ReportItem ^ get(int index); };
public Microsoft.ReportingServices.ReportRendering.ReportItem this[int index] { get; }
member this.Item(int) : Microsoft.ReportingServices.ReportRendering.ReportItem
Default Public ReadOnly Property Item(index As Integer) As ReportItem

參數

index
Int32

報告項目的零基索引,該項目在集合中尋找。

屬性值

若指定的報告項目不存在,則為 ReportItem 物件或空值。

備註

在 Microsoft JScript 中,你可以使用由某個類型定義的預設索引屬性,但你無法明確定義自己的屬性。 然而,在類別上指定 expando 屬性會自動提供預設的索引屬性,其型別為 Object ,索引型別為 String。

適用於