Class CalculatorButtonStyle
Defines the look and feel of a Syncfusion.Windows.Forms.Tools.CalculatorButton.
Inheritance
Inherited Members
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 |
---|
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 |
---|
System.Drawing.Font |
ForeColor
Gets or sets the color for the button title.
Declaration
public Color ForeColor { get; set; }
Property Value
Type |
---|
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 |
---|
System.EventHandler |