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

In This Topic
    DefaultStyle Property (RowHeader)
    In This Topic
    Gets or sets the default style for the cells in the row header.
    Public Property DefaultStyle As StyleInfo
    Dim instance As RowHeader
    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 changes the background color of the row header using its DefaultStyle.
    Dim r As FarPoint.Win.Spread.RowHeader
    r = FpSpread1.ActiveSheet.RowHeader
    Dim mystyle As New FarPoint.Win.Spread.StyleInfo()
    mystyle.BackColor = Color.Red
    r.DefaultStyle = mystyle
    FarPoint.Win.Spread.RowHeader r;
    r = fpSpread1.ActiveSheet.RowHeader;
    FarPoint.Win.Spread.StyleInfo mystyle = new FarPoint.Win.Spread.StyleInfo();
    mystyle.BackColor = Color.Red;
    r.DefaultStyle = mystyle;
    See Also