FarPoint.Web.Spread.NamedStyleCollection nsc = new FarPoint.Web.Spread.NamedStyleCollection();
FarPoint.Web.Spread.NamedStyle ns = new FarPoint.Web.Spread.NamedStyle("StyleData", "DataAreaDefault");
FarPoint.Web.Spread.NamedStyle ns1 = new FarPoint.Web.Spread.NamedStyle("HeaderData", "HeaderDefault");
FarPoint.Web.Spread.NamedStyle inserted = new FarPoint.Web.Spread.NamedStyle("Inserted", "HeaderDefault");
ns.BackColor = Color.Yellow;
ns.Border = new FarPoint.Web.Spread.Border(BorderStyle.Double, Color.Blue);
ns1.BackColor = Color.Teal;
ns1.Border = new FarPoint.Web.Spread.Border(BorderStyle.Double, Color.Red);
inserted.BackColor = Color.DarkBlue;
inserted.Border = New FarPoint.Web.Spread.Border(BorderStyle.Double, Color.White);
nsc.AddRange(new Object[] {ns, ns1});
nsc.Insert(1, inserted);
int i;
i = nsc.IndexOf(inserted);
FpSpread1.NamedStyles.Add(nsc[i]);
FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle = nsc[i];