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


Glossary Item Box

Gets or sets the default style information for the cells in this sheet.

Syntax

Visual Basic (Declaration) 
Public Property DefaultStyle As StyleInfo
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As StyleInfo
 
instance.DefaultStyle = value
 
value = instance.DefaultStyle
C# 
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.
C#Copy Code
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));
Visual BasicCopy Code
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 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.