Spread for ASP.NET 7.0 Product Documentation
DefaultStyleName Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ColumnFooter Class : DefaultStyleName Property


Glossary Item Box

Gets or sets the name of the default style for the column footer.

Syntax

Visual Basic (Declaration) 
Public Property DefaultStyleName As String
Visual Basic (Usage)Copy Code
Dim instance As ColumnFooter
Dim value As String
 
instance.DefaultStyleName = value
 
value = instance.DefaultStyleName
C# 
public string DefaultStyleName {get; set;}

Exceptions

ExceptionDescription
System.ArgumentExceptionSpecified style (NamedStyle object) could not be found in the collection

Example

This example sets the default style name for a column footer.
C#Copy Code
FarPoint.Web.Spread.NamedStyle mnstyle = new FarPoint.Web.Spread.NamedStyle();
mnstyle.Name = "fpstyle";
mnstyle.BackColor = Color.Yellow;
FpSpread1.NamedStyles.Add(mnstyle);
FpSpread1.ActiveSheetView.ColumnFooter.DefaultStyleName = mnstyle.Name;
Visual BasicCopy Code
FarPoint.Web.Spread.NamedStyle mnstyle = new FarPoint.Web.Spread.NamedStyle();
mnstyle.Name = "fpstyle";
mnstyle.BackColor = Color.Yellow;
FpSpread1.NamedStyles.Add(mnstyle);
FpSpread1.ActiveSheetView.ColumnFooter.DefaultStyleName = mnstyle.Name;

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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