Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / CommandBarInfo Class / Reset Method
Example


In This Topic
    Reset Method (CommandBarInfo)
    In This Topic
    Sets the properties of a command bar of the Spread component to their default values.
    Syntax
    'Declaration
     
    Public Sub Reset() 
    'Usage
     
    Dim instance As CommandBarInfo
     
    instance.Reset()
    public void Reset()
    Remarks

    Use this method to reset any of the following property settings back to "Not Set".

    Example
    This example shows the use of this method in setting command bar properties.
    FpSpread1.CommandBar.Background = null;
    FpSpread1.CommandBar.BackColor = Color.Yellow; 
    FpSpread1.CommandBar.ButtonFaceColor = Color.YellowGreen; 
    FpSpread1.CommandBar.ButtonHighlightColor = Color.Coral; 
    FpSpread1.CommandBar.ButtonShadowColor = Color.Bisque; 
    FpSpread1.CommandBar.ButtonTextColor = Color.RoyalBlue; 
    FpSpread1.CommandBar.ButtonType = FarPoint.Web.Spread.ButtonType.PushButton; 
    FpSpread1.CommandBar.Font.Bold = true; 
    FpSpread1.CommandBar.Font.Name = "Comic Sans MS"; 
    FpSpread1.CommandBar.Visible = true; 
    FpSpread1.CommandBar.Background = Nothing
    FpSpread1.CommandBar.BackColor = Color.Yellow
    FpSpread1.CommandBar.ButtonFaceColor = Color.YellowGreen
    FpSpread1.CommandBar.ButtonHighlightColor = Color.Coral
    FpSpread1.CommandBar.ButtonShadowColor = Color.Bisque
    FpSpread1.CommandBar.ButtonTextColor = Color.RoyalBlue
    FpSpread1.CommandBar.ButtonType = FarPoint.Web.Spread.ButtonType.PushButton
    FpSpread1.CommandBar.Font.Bold = True
    FpSpread1.CommandBar.Font.Name = "Comic Sans MS"
    FpSpread1.CommandBar.Visible = True 
    See Also