Spread for ASP.NET 11 Product Documentation
ResetBackground Method (StyleInfo)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > StyleInfo Class : ResetBackground Method
Resets the Background property to its default value.
Syntax
'Declaration
 
Public Sub ResetBackground() 
'Usage
 
Dim instance As StyleInfo
 
instance.ResetBackground()
public void ResetBackground()
Example
This example uses the ResetBackground method.
FarPoint.Web.Spread.Background bg = new FarPoint.Web.Spread.Background();            
bg.BackgroundImageUrl = "fplogo.png";       
FarPoint.Web.Spread.StyleInfo style = new FarPoint.Web.Spread.StyleInfo();
style.Background = bg;
style.BackColor = Color.Beige;
style.ResetBackground();
FpSpread1.ActiveSheetView.SetStyleInfo(1, 1, style);
Dim bg As New FarPoint.Web.Spread.Background()
bg.BackgroundImageUrl = "fplogo.png"
Dim Style As New FarPoint.Web.Spread.StyleInfo()
Style.Background = bg
Style.BackColor = Color.Beige
Style.ResetBackground()
FpSpread1.ActiveSheetView.SetStyleInfo(1, 1, Style)
See Also

Reference

StyleInfo Class
StyleInfo Members