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


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcComboBoxCellType Class : ScrollBarMode Property
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
See Also

Reference

GcComboBoxCellType Class
GcComboBoxCellType Members