Spread Windows Forms 12.0 Product Documentation
ScrollBars Property (GcTextBoxCellType)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcTextBoxCellType Class : ScrollBars Property
Gets or sets which scroll bars appear in a multiline GcTextBox control.
Syntax
'Declaration
 
Public Property ScrollBars As ScrollBars
'Usage
 
Dim instance As GcTextBoxCellType
Dim value As ScrollBars
 
instance.ScrollBars = value
 
value = instance.ScrollBars
public ScrollBars ScrollBars {get; set;}

Property Value

One of the GcTextBox.ScrollBars enumeration values that indicates whether a multiline GcTextBox control appears with no scroll bars, a horizontal scroll bar, a vertical scroll bar, or both.
The default is None.
Remarks
The horizontal scroll bars are not shown if the GcTextBox.WrapMode property is set to WrapMode.WordWrap or WrapMode.CharWrap, regardless of the value of the ScrollBars property.
Example
This example uses the ScrollBars property.
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
textcell.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.EditorBaseFocusCursorPosition.MouseLocation;
textcell.GridLine = new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.DarkGreen);
textcell.LineSpace = 2;
textcell.ScrollBarMode = GrapeCity.Win.Spread.InputMan.CellType.ScrollBarMode.Automatic;
textcell.ScrollBars = ScrollBars.Both;
textcell.Multiline = true;
fpSpread1.Sheets[0].Cells[0, 0].CellType = textcell;
Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
textcell.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.EditorBaseFocusCursorPosition.MouseLocation
textcell.GridLine = New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.DarkGreen)
textcell.LineSpace = 2
textcell.ScrollBarMode = GrapeCity.Win.Spread.InputMan.CellType.ScrollBarMode.Automatic
textcell.ScrollBars = ScrollBars.Both
textcell.Multiline = True
fpSpread1.Sheets(0).Cells(0, 0).CellType = textcell
See Also

Reference

GcTextBoxCellType Class
GcTextBoxCellType Members