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;} |
Exception | Description |
---|---|
System.ArgumentException | Specified style (NamedStyle object) could not be found in the collection |
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 Basic | 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; |
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family