Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / StyleInfo Class / ResetForeColor Method
Example


In This Topic
    ResetForeColor Method (StyleInfo)
    In This Topic
    Resets the ForeColor property to its default value.
    Syntax
    'Declaration
     
    Public Sub ResetForeColor() 
    'Usage
     
    Dim instance As StyleInfo
     
    instance.ResetForeColor()
    public void ResetForeColor()
    Example
    This example uses the ResetForeColor method.
    FarPoint.Web.Spread.StyleInfo Style = new FarPoint.Web.Spread.StyleInfo();
    Style.Font.Bold = true;
    Style.ForeColor = Color.DarkBlue;
    // Style.ResetFont();
    // Style.ResetForeColor();
    FpSpread1.ActiveSheetView.SetStyleInfo(1, 1, Style);
    Dim Style As New FarPoint.Web.Spread.StyleInfo()
    Style.Font.Bold = True
    Style.ForeColor = Color.DarkBlue
    ' Style.ResetFont()
    ' Style.ResetForeColor()
    FpSpread1.ActiveSheetView.SetStyleInfo(1, 1, Style)
    See Also