This documentation is archived and is not being maintained.

<PagerStyle> Element 

Represents a PagerStyle object, which is essentially a Style object with additional properties specific to the pagination UI of a form. A <PagerStyle> element can be treated like any style object, including being part of a StyleSheet object.


<PagerStyle id="id"
    StyleReference="styleControlReference"
    Font-Size="[NotSet | Normal | Small | Large]"
    Font-Name="fontName"
    Font-Bold="[NotSet | False | True]"
    Font-Italic="[NotSet | False | True]"
    ForeColor="color"
    Alignment="[NotSet | Left | Center | Right]"
    BackColor="color" 
    Wrapping="[NotSet | Wrap | NoWrap]"
    NextPageText="nextPageText"
    PreviousPageText="previousPageText"
    PageLabel="pageLabel" />

Property Description

NextPageText

Sets or returns the label that a user will use as the UI element to browse to the next page. The label can include the format specifier {0}, which is substituted with the page number of the next page. The default value is "Next" (or its locale-specific equivalent).

PreviousPageText

Sets or returns the label that that a user will use as the UI element to browse to the previous page. The label can include the format specifier {0}, which is replaced with the page number of the previous page. The default value is "Previous" (or its locale-specific equivalent).

PageLabel

Sets or returns the label used for the current page. If empty, no label is shown. The label can include the format specifiers {0} and {1}, which are replaced with the page number of the current page and the total number of pages, respectively. For example, the format specifier Page {0} of {1} shows the current position within the total number of pages. The default value is an empty string. This property applies only to HTML devices.

The following controls can contain a <PagerStyle> element.

Control Comments

System.Web.UI.MobileControls.StyleSheet

A StyleSheet control can contain any number of <PagerStyle> elements.

A <PagerStyle> element cannot contain any child controls or elements.

Show: