Spread for ASP.NET 8.0 Product Documentation
Reset(SheetStyleProperty) Method
Example 


Sheet style property to reset
Resets the specified property to the default setting (not set).
Syntax
'Declaration
 
Public Overloads Overrides Sub Reset( _
   ByVal prop As SheetStyleProperty _
) 
'Usage
 
Dim instance As NamedStyle
Dim prop As SheetStyleProperty
 
instance.Reset(prop)
public override void Reset( 
   SheetStyleProperty prop
)

Parameters

prop
Sheet style property to reset
Example
This example resets the background color to its default setting.
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);
}
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 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

Reference

NamedStyle Class
NamedStyle Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.