FarPoint.Win.Spread.NamedStyle nstyleheaders = new FarPoint.Win.Spread.NamedStyle("StyleHeaders");
nstyleheaders.BackColor = Color.Red;
nstyleheaders.Parent = "HeaderDefault";
fpSpread1.ActiveSheet.SheetCornerStyle.Parent = "StyleHeaders";
fpSpread1.NamedStyles.Add(nstyleheaders);
fpSpread1.ActiveSheet.SheetCornerStyle = nstyleheaders;
label1.Text = "The name of the sheet corner is " + fpSpread1.ActiveSheet.SheetCornerStyleName;
Dim nstyleheaders As New FarPoint.Win.Spread.NamedStyle("StyleHeaders")
nstyleheaders.BackColor = Color.Red
nstyleheaders.Parent = "HeaderDefault"
FpSpread1.ActiveSheet.SheetCornerStyle.Parent = "StyleHeaders"
FpSpread1.NamedStyles.Add(nstyleheaders)
FpSpread1.ActiveSheet.SheetCornerStyle = nstyleheaders
Label1.Text = "The name of the sheet corner is " & FpSpread1.ActiveSheet.SheetCornerStyleName