Spread for ASP.NET 7.0 Product Documentation
Reset Method
See Also  Example Support Options
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 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.