Spread for ASP.NET 9.0 Product Documentation
DefaultStyleName Property (RowHeader)
Example 


Gets or sets the name of the default style for the row header.
Syntax
'Declaration
 
Public Property DefaultStyleName As String
'Usage
 
Dim instance As RowHeader
Dim value As String
 
instance.DefaultStyleName = value
 
value = instance.DefaultStyleName
public string DefaultStyleName {get; set;}

Property Value

String containing the name of the style for this column header
Exceptions
ExceptionDescription
System.ArgumentExceptionSpecified style (NamedStyle object) could not be found in the collection
Example
This example creates a row header and a style for the spreadsheet. The background color in the style is set to yellow, and is then applied to the row header so all the row headers then have a yellow background.
FarPoint.Web.Spread.RowHeader rhdr;
FarPoint.Web.Spread.NamedStyle mnstyle = new FarPoint.Web.Spread.NamedStyle();
mnstyle.Name = "fpstyle";
mnstyle.BackColor = Color.Yellow;
FpSpread1.NamedStyles.Add(mnstyle);
rhdr = FpSpread1.ActiveSheetView.RowHeader;
rhdr.DefaultStyleName = mnstyle.Name;
Dim rhdr As FarPoint.Web.Spread.RowHeader
Dim mnstyle As New FarPoint.Web.Spread.NamedStyle()
mnstyle.Name = "fpstyle"
mnstyle.BackColor = Color.Yellow
FpSpread1.NamedStyles.Add(mnstyle)
rhdr = FpSpread1.ActiveSheetView.RowHeader
rhdr.DefaultStyleName = mnstyle.Name 
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

RowHeader Class
RowHeader Members
DefaultStyle Property

User-Task Documentation

Customizing the Appearance of Headers

 

 


Copyright © GrapeCity, inc. All rights reserved.