| Visual Basic (Declaration) | |
|---|---|
Public Enum LineStyle Inherits System.Enum  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
Dim instance As LineStyle  | |
| C# | |
|---|---|
public enum LineStyle : System.Enum  | |
| Member | Description | 
|---|---|
| DashDot | Specifies a line consisting of a repeating pattern of dash-dot. | 
| DashDotDot | Specifies a line consisting of a repeating pattern of dash-dot-dot. | 
| Dashed | Specifies a line consisting of dashes. | 
| Dotted | Specifies a line consisting of dots. | 
| Double | Specifies a double line. | 
| Hair | Specifies a dashed style line with dashes spaced 50 percent closer than the dashed style. | 
| Inset | Specifies a line with an inset effect. | 
| None | Specifies no line. | 
| Raised | Specifies a line with a raised effect. | 
| Single | Specifies a single line. | 
| Thick | Specifies a thick single line. | 
This example uses the LineStyle enumeration.
             
            
            | C# |  Copy Code | 
|---|---|
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;  | |
| VB.NET |  Copy Code | 
|---|---|
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  | |
System.Object
   System.ValueType
      System.Enum
         GrapeCity.Win.Spread.InputMan.CellType.LineStyle
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8