Spread ASP.NET 6.0 Product Documentation
ScrollBarPolicy Enumeration
Example  See Also  Send Feedback
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 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.