Spread for ASP.NET 11 Product Documentation
ScrollBarPolicy Enumeration
Example Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace : ScrollBarPolicy Enumeration
Specifies how scroll bars (if at all) are displayed in the Spread component.
Syntax
'Declaration
 
Public Enum ScrollBarPolicy 
   Inherits System.Enum
'Usage
 
Dim instance As ScrollBarPolicy
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.
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;
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

See Also

Reference

FarPoint.Web.Spread Namespace
HorizontalScrollBarPolicy Property
VerticalScrollBarPolicy Property

User-Task Documentation

Displaying Scroll Bars