Spread ASP.NET 6.0 Product Documentation
Reset(SheetStyleProperty) Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > NamedStyle Class > Reset Method : Reset(SheetStyleProperty) Method


prop
Sheet style property to reset

Glossary Item Box

Resets the specified property to the default setting (not set).

Syntax

Visual Basic (Declaration) 
Public Overloads Overrides Sub Reset( _
   ByVal prop As SheetStyleProperty _
) 
Visual Basic (Usage)Copy Code
Dim instance As NamedStyle
Dim prop As SheetStyleProperty
 
instance.Reset(prop)
C# 
public override void Reset( 
   SheetStyleProperty prop
)

Parameters

prop
Sheet style property to reset

Example

This example resets the background color to its default setting.
C#Copy Code
FarPoint.Web.Spread.NamedStyle parent = new FarPoint.Web.Spread.NamedStyle("StyleHeaders", "HeaderDefault");
parent.BackColor = Color.Yellow;
FpSpread1.NamedStyles.Add(parent);
FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle = parent;
FpSpread1.ActiveSheetView.RowHeader.DefaultStyle = parent;

if (IsPostBack)
{
    parent.Reset(FarPoint.Web.Spread.SheetStyleProperty.BackColor);
}
Visual BasicCopy Code
Dim parent As New FarPoint.Web.Spread.NamedStyle("StyleHeaders", "HeaderDefault")
parent.BackColor = Color.Yellow
FpSpread1.NamedStyles.Add(parent)
FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle = parent
FpSpread1.ActiveSheetView.RowHeader.DefaultStyle = parent

If IsPostBack Then
    parent.Reset(FarPoint.Web.Spread.SheetStyleProperty.BackColor)
End If

Requirements

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

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.