Visual Basic (Declaration) | |
---|---|
Public Enum ScrollBarPolicy Inherits System.Enum |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ScrollBarPolicy |
C# | |
---|---|
public enum ScrollBarPolicy : System.Enum |
Member | Description |
---|---|
Always | Displays scroll bars at all times |
AsNeeded | Displays scroll bars only when needed |
Never | Does not display scroll bars |
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.
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 Basic | 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 |
System.Object
System.ValueType
System.Enum
FarPoint.Web.Spread.ScrollBarPolicy
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
Reference
FarPoint.Web.Spread NamespaceHorizontalScrollBarPolicy Property
VerticalScrollBarPolicy Property