FarPoint.Web.Spread.Model.INamedStyleSupport ins;
FarPoint.Web.Spread.NamedStyle ns = new FarPoint.Web.Spread.NamedStyle("StyleData");
ns.BackColor = Color.LightBlue;
FpSpread1.NamedStyles.Add(ns);
ins = (FarPoint.Web.Spread.Model.INamedStyleSupport)FpSpread1.ActiveSheetView.StyleModel;
ins.SetDirectName(1, 1, "StyleData");
Response.Write("The name of the style used to change the color in the cell is " + ins.GetDirectName(1, 1).ToString());
Dim ins As FarPoint.Web.Spread.Model.INamedStyleSupport
Dim ns As New FarPoint.Web.Spread.NamedStyle("StyleData")
ns.BackColor = Color.LightBlue
FpSpread1.NamedStyles.Add(ns)
ins = FpSpread1.ActiveSheetView.StyleModel
ins.SetDirectName(1, 1, "StyleData")
Response.Write("The name of the style used to change the color in the cell is " & ins.GetDirectName(1, 1).ToString())