Spread for ASP.NET 7.0 Product Documentation
Position Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > PagerInfo Class : Position Property


Glossary Item Box

Gets or sets where page navigation aids are displayed in the Spread component.

Syntax

Visual Basic (Declaration) 
Public Property Position As PagerPosition
Visual Basic (Usage)Copy Code
Dim instance As PagerInfo
Dim value As PagerPosition
 
instance.Position = value
 
value = instance.Position
C# 
public PagerPosition Position {get; set;}

Property Value

PagerPosition setting

Remarks

You can display the page navigation aids in any of the positions in the PagerPosition enumeration. Be sure to set the position before setting the mode if you are displaying more than just the next and previous arrows.

Note: The only page navigation aids that the component displays on the command bar are the next (>>) and previous (<<) arrows regardless of the Mode property setting. The page numbers, if displayed, are displayed in a separate area depending on the setting of this property.

Example

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 BasicCopy 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
 

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.