Spread ASP.NET 6.0 Product Documentation
PagerMode Enumeration
Example  See Also  Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace : PagerMode Enumeration


Glossary Item Box

Specifies which type of page navigation aids are shown in the Spread component.

Syntax

Visual Basic (Declaration) 
Public Enum PagerMode 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As PagerMode
C# 
public enum PagerMode : System.Enum 

Members

MemberDescription
BothDisplays both the page numbers and page arrows of the pages in a sheet
NextPrevDisplays arrows for next page and previous page, called the Next and Previous arrows
NumberDisplays page numbers of the pages in a sheet
SliderDisplays a slider

Remarks

Use these settings with the PagerInfo class's Mode property to specify which page navigation aids to display.

A sheet can have multiple pages depending on how many rows can display at a time. How many rows are displayed depends on the height of the Spread component, the setting of the SheetView class PageSize property, and the number of rows of data. The component can display the page numbers and the page arrows (for next and previous pages). For information on where the page numbers and page arrows appear on the Spread component, refer to the PagerPosition enumeration and the PagerInfo class's Position property.

Example

This example creates a spreadsheet with 5 columns and 150 rows. The properties for page navigation are assigned.
C#Copy Code
FpSpread1.Columns.Count=5;
FpSpread1.Rows.Count=150;
FpSpread1.ActiveSheetView.PageSize=30;
FpSpread1.Pager.Align=HorizontalAlign.Right;
FpSpread1.Pager.BackColor=Color.Yellow;
FpSpread1.Pager.Font.Bold=true;
FpSpread1.Pager.ForeColor=Color.DarkBlue;
FpSpread1.Pager.Position=FarPoint.Web.Spread.PagerPosition.Top;
FpSpread1.Pager.Mode=FarPoint.Web.Spread.PagerMode.Both;
FpSpread1.Pager.PageCount=3;
Visual BasicCopy Code
FpSpread1.Columns.Count=5
FpSpread1.Rows.Count=150
FpSpread1.ActiveSheetView.PageSize=30
FpSpread1.Pager.Align=HorizontalAlign.Right
FpSpread1.Pager.BackColor=Color.Yellow
FpSpread1.Pager.Font.Bold=True
FpSpread1.Pager.ForeColor=Color.DarkBlue
FpSpread1.Pager.Position=FarPoint.Web.Spread.PagerPosition.Top
FpSpread1.Pager.Mode=FarPoint.Web.Spread.PagerMode.Both
FpSpread1.Pager.PageCount=3

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Web.Spread.PagerMode

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.