Spread Windows Forms 12.0 Product Documentation
SheetCornerStyleName Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SheetCornerStyleName Property
Gets or sets the name of the style for the sheet corner.
Syntax
'Declaration
 
Public Property SheetCornerStyleName As String
'Usage
 
Dim instance As SheetView
Dim value As String
 
instance.SheetCornerStyleName = value
 
value = instance.SheetCornerStyleName
public string SheetCornerStyleName {get; set;}

Property Value

String containing the name of the style.
Exceptions
ExceptionDescription
Specified NamedStyle object could not be found in the collection
Example
This example sets the name of the default style of the sheet corner.
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
See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Creating and Applying a Style for Cells
Customizing the Sheet Corner