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


Resets the StyleInfo object to its default values.
Syntax
'Declaration
 
Public Overloads Overridable Sub Reset() 
'Usage
 
Dim instance As StyleInfo
 
instance.Reset()
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).
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");
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 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

StyleInfo Class
StyleInfo Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.