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


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

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

Reference

FarPoint.Web.Spread Namespace
HorizontalScrollBarPolicy Property
VerticalScrollBarPolicy Property

User-Task Documentation

Displaying Scroll Bars

 

 


Copyright © GrapeCity, inc. All rights reserved.