Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / GridLines Property
Example


In This Topic
    GridLines Property (SheetView)
    In This Topic
    Gets or sets whether to display grid lines in the sheet.
    Syntax
    'Declaration
     
    Public Property GridLines As GridLines
    'Usage
     
    Dim instance As SheetView
    Dim value As GridLines
     
    instance.GridLines = value
     
    value = instance.GridLines
    public GridLines GridLines {get; set;}

    Property Value

    GridLines setting that specifies which grid lines are displayed
    Remarks

    This property uses the GridLines enumeration. The possible values are:

    • Both - Displays both horizontal and vertical grid lines
    • Horizontal - Displays only horizontal grid lines
    • Vertical - Displays only vertical grid lines
    • None - Displays no grid lines

    For more information about the GridLines enumeration, refer to the .NET Framework Reference.

    To specify the color of the grid lines, set the GridLineColor property.

    Example
    This example changes the color and configuration of the gridlines in the SheetView object.
    FarPoint.Web.Spread.SheetView sv=FpSpread1.ActiveSheetView;
    sv.GridLines=GridLines.Horizontal;
    sv.GridLineColor=Color.Red;
    Dim sv As FarPoint.Web.Spread.SheetView
    sv=FpSpread1.ActiveSheetView
    sv.GridLines=GridLines.Horizontal
    sv.GridLineColor=Color.Red
    See Also