Spread ASP.NET 6.0 Product Documentation
Reset Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > PagerInfo Class : Reset Method


Glossary Item Box

Sets the properties of the page navigation aids of the Spread component to their default values.

Syntax

Visual Basic (Declaration) 
Public Sub Reset() 
Visual Basic (Usage)Copy Code
Dim instance As PagerInfo
 
instance.Reset()
C# 
public void Reset()

Example

This example creates a spreadsheet with 5 columns and 150 rows and sets the properties for page navigation (when more rows are on a sheet than can be displayed at once).
C#Copy Code
FpSpread1.Pager.Reset(); 
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.Pager.Reset()
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 

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.