Spread Windows Forms 11.0 Product Documentation
LineSpace Property
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcTextBoxCellType Class : LineSpace Property
Gets or sets the line space between two adjacent lines.
Syntax
'Declaration
 
Public Property LineSpace As Integer
'Usage
 
Dim instance As GcTextBoxCellType
Dim value As Integer
 
instance.LineSpace = value
 
value = instance.LineSpace
public int LineSpace {get; set;}

Property Value

The int value that indicates the line space between two adjacent lines.
The default is 0.
Exceptions
ExceptionDescription
If value less than zero, an ArgumentOutOfRangeException will be thrown.
Remarks
The LineSpace property indicates the spaces between text lines. This property only takes effect when the Multiline property is true.
Example
This example uses the LineSpace 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