Spread for ASP.NET 7.0 Product Documentation
ScrollBarPolicy Enumeration
Example  See Also  Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace : ScrollBarPolicy Enumeration


Glossary Item Box

Specifies how scroll bars (if at all) are displayed in the Spread component.

Syntax

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

Members

MemberDescription
AlwaysDisplays scroll bars at all times
AsNeededDisplays scroll bars only when needed
NeverDoes not display scroll bars

Remarks

Scroll bars may appear horizontally or vertically. Use these settings to set whether to display them all the time (Always), none of the time (Never), or only when the number (and size) of rows or columns exceeds the size of the display (AsNeeded). Use these settings with the HorizontalScrollBarPolicy and VerticalScrollBarPolicy properties in your code to set the scroll bar policy.

Example

This example creates a spreadsheet with 5 columns and 50 rows and displays the scroll bars on an as-needed basis.
C#Copy Code
FpSpread1.Columns.Count=5;
FpSpread1.Rows.Count=50;
FpSpread1.ActiveSheetView.PageSize=10;
FpSpread1.HorizontalScrollBarPolicy=FarPoint.Web.Spread.ScrollBarPolicy.AsNeeded;
FpSpread1.VerticalScrollBarPolicy=FarPoint.Web.Spread.ScrollBarPolicy.AsNeeded;
Visual BasicCopy Code
FpSpread1.Columns.Count=5
FpSpread1.Rows.Count=50
FpSpread1.ActiveSheetView.PageSize=10
FpSpread1.HorizontalScrollBarPolicy=FarPoint.Web.Spread.ScrollBarPolicy.AsNeeded
FpSpread1.VerticalScrollBarPolicy=FarPoint.Web.Spread.ScrollBarPolicy.AsNeeded

Inheritance Hierarchy

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

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.