Partager via


Propriété PageCollection.Item

Gets the specified Page object from the collection at the specified index. In C#, this property is the indexer for the PageCollection class.

Espace de noms :  Microsoft.ReportingServices.ReportRendering
Assembly :  Microsoft.ReportingServices.ProcessingCore (en Microsoft.ReportingServices.ProcessingCore.dll)

Syntaxe

'Déclaration
Public Default Property Item ( _
    pageNumber As Integer _
) As Page 
    Get 
    Set
'Utilisation
Dim instance As PageCollection 
Dim pageNumber As Integer 
Dim value As Page 

value = instance(pageNumber)

instance(pageNumber) = value
public Page this[
    int pageNumber
] { get; set; }
public:
property Page^ default[int pageNumber] {
    Page^ get (int pageNumber);
    void set (int pageNumber, Page^ value);
}
member Item : Page with get, set
JScript prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.

Paramètres

  • pageNumber
    Type : System.Int32
    The zero-based index of the Page object to find.

Valeur de propriété

Type : Microsoft.ReportingServices.ReportRendering.Page
A Page object, or a null value if the specified Page does not exist.

Notes

In Microsoft JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Voir aussi

Référence

PageCollection Classe

Espace de noms Microsoft.ReportingServices.ReportRendering