Spread Windows Forms 13.0 Product Documentation
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / LineStyle Enumeration
Example Example


In This Topic
    LineStyle Enumeration
    In This Topic
    Specifies the style of the line.
    Syntax
    'Declaration
     
    Public Enum LineStyle 
       Inherits System.Enum
    'Usage
     
    Dim instance As LineStyle
    public enum LineStyle : System.Enum 
    Members
    MemberDescription
    DashDotSpecifies a line consisting of a repeating pattern of dash-dot.
    DashDotDotSpecifies a line consisting of a repeating pattern of dash-dot-dot.
    DashedSpecifies a line consisting of dashes.
    DottedSpecifies a line consisting of dots.
    DoubleSpecifies a double line.
    HairSpecifies a dashed style line with dashes spaced 50 percent closer than the dashed style.
    InsetSpecifies a line with an inset effect.
    NoneSpecifies no line.
    RaisedSpecifies a line with a raised effect.
    SingleSpecifies a single line.
    ThickSpecifies a thick single line.
    Example
    This example uses the LineStyle enumeration.
    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
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             GrapeCity.Win.Spread.InputMan.CellType.LineStyle

    See Also