Spread ASP.NET 18
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / HeaderGrayAreaColor Property
Example


In This Topic
    HeaderGrayAreaColor Property (SheetView)
    In This Topic
    Gets or sets the color of the header area that does not contain column header or row header cells.
    Syntax
    'Declaration
     
    
    Public Property HeaderGrayAreaColor As Color
    'Usage
     
    
    Dim instance As SheetView
    Dim value As Color
     
    instance.HeaderGrayAreaColor = value
     
    value = instance.HeaderGrayAreaColor
    public Color HeaderGrayAreaColor {get; set;}

    Property Value

    Color object containing the color of the area in the area beyond the headers
    Remarks

    Use this property to specify the color of the header area that does not contain specific column headers or row headers. Refer to Customizing the Header Empty Area.

    To set the color for the background of the column and row headers themselves, use the ColumnHeaderStyleModel and RowHeaderStyleModel properties.

    To set the color of the rest of the sheet background, use the BackColor property of the sheet.

    Example
    This example changes the color of the header area that does not contain column header or row header cells in the SheetView object.
    FarPoint.Web.Spread.SheetView sv=FpSpread1.ActiveSheetView;
    sv.HeaderGrayAreaColor=Color.Red;
    Dim sv AsFarPoint.Web.Spread.SheetView
    sv=FpSpread1.ActiveSheetView
    sv.HeaderGrayAreaColor=Color.Red
    See Also