FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : DefaultStyleName Property |
'Declaration Public Property DefaultStyleName As String
'Usage Dim instance As SheetView Dim value As String instance.DefaultStyleName = value value = instance.DefaultStyleName
public string DefaultStyleName {get; set;}
To create named styles for the component, use the NamedStyleCollection or NamedStyle class.
FarPoint.Web.Spread.SheetView sv=FpSpread1.ActiveSheetView; FarPoint.Web.Spread.NamedStyle dnstyle=new FarPoint.Web.Spread.NamedStyle(); dnstyle.Name="fpstyle"; dnstyle.BackColor=Color.Yellow; FpSpread1.NamedStyles.Add(dnstyle); sv.DefaultStyleName=dnstyle.Name;
Dim sv As FarPoint.Web.Spread.SheetView Dim dnstyle As New FarPoint.Web.Spread.NamedStyle() sv=FpSpread1.ActiveSheetView dnstyle.Name="fpstyle" dnstyle.BackColor=Color.Yellow FpSpread1.NamedStyles.Add(dnstyle) sv.DefaultStyleName=dnstyle.Name
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional
SheetView Class
SheetView Members
NamedStyle Class
NamedStyleCollection Class