Spread for ASP.NET 9.0 Product Documentation
DefaultStyle Property (SheetView)
Example 


Gets or sets the default style information for the cells in this sheet.
Syntax
'Declaration
 
Public Property DefaultStyle As StyleInfo
'Usage
 
Dim instance As SheetView
Dim value As StyleInfo
 
instance.DefaultStyle = value
 
value = instance.DefaultStyle
public StyleInfo DefaultStyle {get; set;}

Property Value

StyleInfo object that contains the default style information
Example
This example returns some of the default settings of the StyleInfo object associated with the SheetView object.
FarPoint.Web.Spread.SheetView sv;
sv = FpSpread1.ActiveSheetView;
ListBox1.Items.Add(Convert.ToString(sv.DefaultStyle.BackColor));
ListBox1.Items.Add(Convert.ToString(sv.DefaultStyle.ForeColor));
ListBox1.Items.Add(Convert.ToString(sv.DefaultStyle.Parent));
Dim sv As FarPoint.Web.Spread.SheetView
sv = FpSpread1.ActiveSheetView
ListBox1.Items.Add(Convert.ToString(sv.DefaultStyle.BackColor))
ListBox1.Items.Add(Convert.ToString(sv.DefaultStyle.ForeColor))
ListBox1.Items.Add(Convert.ToString(sv.DefaultStyle.Parent))
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

SheetView Class
SheetView Members
StyleInfo Class

User-Task Documentation

Styles for Cells

 

 


Copyright © GrapeCity, inc. All rights reserved.