Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / ColumnHeader Class / DefaultStyle Property

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

    Property Value

    StyleInfo object containing the default style information for the header
    This example sets the background color of all the columns in the column header, based on the DefaultStyle.
    FarPoint.Win.Spread.ColumnHeader ch;
    FarPoint.Win.Spread.StyleInfo style = new FarPoint.Win.Spread.StyleInfo();
    ch = fpSpread1.ActiveSheet.ColumnHeader;
    ch.RowCount = 3;
    style.BackColor = Color.Teal;
    ch.DefaultStyle = style;
    Dim ch As FarPoint.Win.Spread.ColumnHeader
    Dim style As New FarPoint.Win.Spread.StyleInfo()
    ch = fpSpread1.ActiveSheet.ColumnHeader
    ch.RowCount = 3
    style.BackColor = Color.Teal
    ch.DefaultStyle = style
    See Also