NextPageText Property

Sets or returns the label used for a UI element that is used to navigate to the next page. The default value is Next.

public string NextPageText {
   get,
   set
}

Remarks

The label can include the format specifier {0}, which is substituted with the page number of the next page when the label is rendered.

Example

The following example demonstrates how to use of the NextPageText property to set the next page label to one more than the current page.

Private Sub Form1_PageIndexChanged(sender As Object, e As EventArgs)
    Form1.PagerStyle.NextPageText = (Form1.CurrentPage + 1)
End Sub 

[C#]

void Form1_PageIndexChanged(object sender, EventArgs e)
{
   Form1.PagerStyle.NextPageText = (Form1.CurrentPage + 1);
}   

See Also

Applies to: PagerStyle Class