Spread Windows Forms 6.0 Product Documentation
SheetCornerStyleName Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SheetCornerStyleName Property

Glossary Item Box

Gets or sets the name of the style for the sheet corner.


Visual Basic (Declaration) 
Public Property SheetCornerStyleName As String
Visual Basic (Usage)Copy Code
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.


System.ArgumentException Specified NamedStyle object could not be found in the collection


This example sets the name of the default style of the sheet corner.
C#Copy Code
FarPoint.Win.Spread.NamedStyle nstyleheaders = new FarPoint.Win.Spread.NamedStyle("StyleHeaders");
nstyleheaders.BackColor = Color.Red;
nstyleheaders.Parent = "HeaderDefault";
fpSpread1.ActiveSheet.SheetCornerStyle.Parent = "StyleHeaders";
fpSpread1.ActiveSheet.SheetCornerStyle = nstyleheaders;
label1.Text = "The name of the sheet corner is " + fpSpread1.ActiveSheet.SheetCornerStyleName;
Visual BasicCopy Code
Dim nstyleheaders As New FarPoint.Win.Spread.NamedStyle("StyleHeaders")
nstyleheaders.BackColor = Color.Red
nstyleheaders.Parent = "HeaderDefault"
FpSpread1.ActiveSheet.SheetCornerStyle.Parent = "StyleHeaders"
FpSpread1.ActiveSheet.SheetCornerStyle = nstyleheaders
Label1.Text = "The name of the sheet corner is " & FpSpread1.ActiveSheet.SheetCornerStyleName


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.