Spread ASP.NET 18
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / ColumnHeader Class / DefaultStyle Property
Example


In This Topic
    DefaultStyle Property (ColumnHeader)
    In This Topic
    Gets or sets the default style information for the cells in the column header.
    Syntax
    'Declaration
     
    
    Public Property DefaultStyle As StyleInfo
    'Usage
     
    
    Dim instance As ColumnHeader
    Dim value As StyleInfo
     
    instance.DefaultStyle = value
     
    value = instance.DefaultStyle
    public StyleInfo DefaultStyle {get; set;}

    Property Value

    StyleInfo object containing style information for cells in this column header
    Remarks
    When defining and applying a custom style to header cells, be sure to set the text alignment. The default renderer (without any style applied) centers the text; if you apply a style, and do not set the alignment, the text is left-aligned not centered.
    Example

    This example sets the background color to red, and then applies that style to the column header, which sets all the column headers to a red background.

    See Also