WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CalculatorButtonStyle

    Show / Hide Table of Contents

    Class CalculatorButtonStyle

    Defines the look and feel of a Syncfusion.Windows.Forms.Tools.CalculatorButton.

    Inheritance
    System.Object
    CalculatorButtonStyle
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class CalculatorButtonStyle
    Remarks

    The CalcultorBtnStyle class is closely tied to the display attributes of the Syncfusion.Windows.Forms.Tools.CalculatorButton class.

    Constructors

    CalculatorButtonStyle()

    Initializes a new instance of the CalculatorButtonStyle class.

    Declaration
    public CalculatorButtonStyle()

    CalculatorButtonStyle(CalculatorButtonStyle)

    Initializes a new instance of the CalculatorButtonStyle class.

    Declaration
    public CalculatorButtonStyle(CalculatorButtonStyle btnStyle)
    Parameters
    Type Name Description
    CalculatorButtonStyle btnStyle

    Another instance of the CalculatorButtonStyle class.

    CalculatorButtonStyle(Color, Font, FlatStyle)

    Initializes a new instance of the CalculatorButtonStyle class.

    Declaration
    public CalculatorButtonStyle(Color foreColor, Font font, FlatStyle flatStyle)
    Parameters
    Type Name Description
    System.Drawing.Color foreColor

    The forecolor to be used for the button.

    System.Drawing.Font font

    The font to be used for the button.

    System.Windows.Forms.FlatStyle flatStyle

    The FlatStyle to be used for the button.

    Properties

    FlatStyle

    Gets or sets the flat style to be applied to the button.

    Declaration
    public FlatStyle FlatStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Forms.FlatStyle

    Font

    Gets or sets the font to be used for displaying the Button title.

    Declaration
    public Font Font { get; set; }
    Property Value
    Type Description
    System.Drawing.Font

    ForeColor

    Gets or sets the color for the button title.

    Declaration
    public Color ForeColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    Methods

    OnStyleChanged(EventArgs)

    Invokes the StyleChanged event.

    Declaration
    protected virtual void OnStyleChanged(EventArgs args)
    Parameters
    Type Name Description
    System.EventArgs args

    An EventArgs that contains the event data.

    Remarks

    The OnStyleChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

    note

    Inheritors: When overriding OnStyleChanged in a derived class, be sure to call the base class's OnStyleChanged method so that registered delegates receive the event.

    RaiseStyleChangedEvent()

    Raises the StyleChanged event.

    Declaration
    protected void RaiseStyleChangedEvent()

    Events

    StyleChanged

    The StyleChanged event.

    Declaration
    public event EventHandler StyleChanged
    Event Type
    Type Description
    System.EventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved