FarPoint.Win.Spread.Model.INamedStyleSupport ins;
FarPoint.Win.Spread.NamedStyle ns = new FarPoint.Win.Spread.NamedStyle("StyleHeaders");
ns.BackColor = Color.LightBlue;
fpSpread1.NamedStyles.Add(ns);
fpSpread1.ActiveSheet.ColumnHeaderRowCount = 5;
ins = (FarPoint.Win.Spread.Model.INamedStyleSupport)fpSpread1.ActiveSheet.Models.ColumnHeaderStyle;
ins.SetDirectAltRowName(1, "StyleHeaders");
label1.Text = "The name of the style used to change the color in the headers is " + ins.GetDirectAltRowName(1).ToString();
Dim ins As FarPoint.Win.Spread.Model.INamedStyleSupport
Dim ns As New FarPoint.Win.Spread.NamedStyle("StyleHeaders")
ns.BackColor = Color.LightBlue
FpSpread1.NamedStyles.Add(ns)
FpSpread1.ActiveSheet.ColumnHeaderRowCount = 5
ins = FpSpread1.ActiveSheet.Models.ColumnHeaderStyle
ins.SetDirectAltRowName(1, "StyleHeaders")
Label1.Text = "The name of the style used to change the color in the headers is " & ins.GetDirectAltRowName(1).ToString()