Visual Basic (Declaration) | |
---|---|
Public Property PageCount As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As PagerInfo Dim value As Integer instance.PageCount = value value = instance.PageCount |
C# | |
---|---|
public int PageCount {get; set;} |
Property Value
Integer count of page numbers displayedIf the number of pages on a sheet exceeds the value specified by this property, an ellipsis (...) button indicating more pages are available is displayed in the navigation aids next to the page numbers. If the number of pages on a sheet is less than the number specified, then only those page numbers are displayed; for example if there are 100 rows on the sheet and 20 rows per page, then only 5 pages are needed, so only page numbers 1 through 5 are displayed, even if the property is set to a number greater than 5.
C# | Copy Code |
---|---|
FpSpread1.Columns.Count = 5; FpSpread1.Rows.Count = 150; FpSpread1.ActiveSheetView.PageSize = 30; FarPoint.Web.Spread.PagerInfo pinf; pinf = FpSpread1.Pager; pinf.Align = HorizontalAlign.Right; pinf.BackColor = Color.Yellow; pinf.CssClass = "CssStyle1"; pinf.Font.Bold = true; pinf.ForeColor = Color.Red; pinf.Mode = FarPoint.Web.Spread.PagerMode.NextPrev; pinf.PageCount = 30; pinf.Position = FarPoint.Web.Spread.PagerPosition.Top; |
Visual Basic | Copy Code |
---|---|
FpSpread1.Columns.Count = 5 FpSpread1.Rows.Count = 150 FpSpread1.ActiveSheetView.PageSize = 30 Dim pinf As FarPoint.Web.Spread.PagerInfo pinf = FpSpread1.Pager pinf.Align = HorizontalAlign.Right pinf.BackColor = Color.Yellow pinf.CssClass = "CssStyle1" pinf.Font.Bold = True pinf.ForeColor = Color.Red pinf.Mode = FarPoint.Web.Spread.PagerMode.NextPrev pinf.PageCount = 30 pinf.Position = FarPoint.Web.Spread.PagerPosition.Top |
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