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


Glossary Item Box

Resets the StyleInfo object to its default values.

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Sub Reset() 
Visual Basic (Usage)Copy Code
Dim instance As StyleInfo
 
instance.Reset()
C# 
public virtual void Reset()

Remarks

This method resets all the style settings in a StyleInfo object to the default settings.

Example

This example creates a StyleInfo object and uses it to set the styles for cell (0, 0) and (0, 2).
C#Copy Code
 FarPoint.Web.Spread.StyleInfo info = new FarPoint.Web.Spread.StyleInfo();
 info.BackColor = Color.Yellow;
 info.ForeColor = Color.Red;
 info.Font.Bold = true;
 FpSpread1.ActiveSheetView.SetStyleInfo(0, 0, info);
 FpSpread1.ActiveSheetView.SetValue(0, 0, "0, 0");
 
 info.Reset();
 info.BackColor = Color.Red;
 FpSpread1.ActiveSheetView.SetStyleInfo(0, 2, info);
 FpSpread1.ActiveSheetView.SetValue(0, 2, "0, 2");
Visual BasicCopy Code
 Dim info As New FarPoint.Web.Spread.StyleInfo()
 info.BackColor = Color.Yellow
 info.ForeColor = Color.Red
 info.Font.Bold = True
 FpSpread1.ActiveSheetView.SetStyleInfo(0, 0, info)
 FpSpread1.ActiveSheetView.SetValue(0, 0, "0, 0")
 
 info.Reset()
 info.BackColor = Color.Red
 FpSpread1.ActiveSheetView.SetStyleInfo(0, 2, info)
 FpSpread1.ActiveSheetView.SetValue(0, 2, "0, 2")

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.