Spread Windows Forms 10.0 Product Documentation
ScrollBarMode Property (GcComboBoxCellType)
Example 


Gets or sets how to display the scroll bars in the drop-down window.
Syntax
'Declaration
 
Public Property ScrollBarMode As ScrollBarMode
'Usage
 
Dim instance As GcComboBoxCellType
Dim value As ScrollBarMode
 
instance.ScrollBarMode = value
 
value = instance.ScrollBarMode
public ScrollBarMode ScrollBarMode {get; set;}

Property Value

One of the ScrollBarMode enumerations that indicate how to display the scroll bars.
The default is ScrollBarMode.Automatic.
Remarks
If set to ScrollBarMode.Fixed, the scroll bars are displayed at all times. If set to ScrollBarMode.Automatic, the scroll bars are visible only when the content of the control exceeds the length of the control.
Example
This example displays the vertical scroll bar.
GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType gccombo = new GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType();
gccombo.DropDownStyle = ComboBoxStyle.DropDownList;
gccombo.ScrollBars = ScrollBars.Vertical;
gccombo.ScrollBarMode = GrapeCity.Win.Spread.InputMan.CellType.ScrollBarMode.Fixed;
gccombo.Items.AddRange(new String[] { "Feta", "Havarti", "Swiss", "Mascarpone", "Asiago", "Gouda", "Muenster", "Parmesan", "Provolone", "Brie", "Cheddar" });
fpSpread1.Sheets[0].Cells[1, 1].CellType = gccombo;
Dim gccombo As New GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType()
gccombo.DropDownStyle = ComboBoxStyle.DropDownList
gccombo.ScrollBars = ScrollBars.Vertical
gccombo.ScrollBarMode = GrapeCity.Win.Spread.InputMan.CellType.ScrollBarMode.Fixed
gccombo.Items.AddRange(New String() {"Feta", "Havarti", "Swiss", "Mascarpone", "Asiago", "Gouda", "Muenster", "Parmesan", "Provolone", "Brie", "Cheddar"})
FpSpread1.Sheets(0).Cells(1, 1).CellType = gccombo
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

GcComboBoxCellType Class
GcComboBoxCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.