Spread Windows Forms 6.0 Product Documentation
Default Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DefaultSpreadSkins Class : Default Property


Glossary Item Box

Represents the skin for resetting the skin properties to the default values.

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly Property Default As SpreadSkin
Visual Basic (Usage)Copy Code
Dim value As SpreadSkin
 
value = DefaultSpreadSkins.Default
C# 
public static SpreadSkin Default {get;}

Property Value

SpreadSkin object containing the default values

Example

This example applies the default DefaultSpreadSkins to the spreadsheet.
C#Copy Code
fpSpread1.ActiveSheet.ColumnHeader.DefaultStyle.Renderer = new FarPoint.Win.Spread.CellType.ColumnHeaderRenderer();
fpSpread1.ActiveSheet.RowHeader.DefaultStyle.Renderer = new FarPoint.Win.Spread.CellType.RowHeaderRenderer();
fpSpread1.ActiveSheet.SheetCorner.DefaultStyle.Renderer = new FarPoint.Win.Spread.CellType.CornerRenderer();
fpSpread1.InterfaceRenderer = null;

FarPoint.Win.Spread.DefaultSpreadSkins.Default.Apply(fpSpread1);
Visual BasicCopy Code
FpSpread1.ActiveSheet.ColumnHeader.DefaultStyle.Renderer = New FarPoint.Win.Spread.CellType.ColumnHeaderRenderer
FpSpread1.ActiveSheet.RowHeader.DefaultStyle.Renderer = New FarPoint.Win.Spread.CellType.RowHeaderRenderer
FpSpread1.ActiveSheet.SheetCorner.DefaultStyle.Renderer = New FarPoint.Win.Spread.CellType.CornerRenderer
FpSpread1.InterfaceRenderer = Nothing

FarPoint.Win.Spread.DefaultSpreadSkins.Default.Apply(FpSpread1)

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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