Skip to main content

macbutton-class

The class that defines the flat MacOs-like button.

public class Korzh.EasyQuery.WinForms.MacButton
: Button

Assembly: Korzh.EasyQuery.WinForms.dll

Constructors

NameTypeDescription
MacButton()voidInitializes a new instance of the Korzh.EasyQuery.WinForms.MacButton class.

Properties

NameTypeDescription
ActiveBodyColorColorGets or sets the color of the button when it is in Korzh.EasyQuery.WinForms.MacButton.MState.stIn state.
ActiveBorderColorColorGets or sets the color of the border when the button is in Korzh.EasyQuery.WinForms.MacButton.MState.stIn state.
BorderWidthintGets or sets the width of the border.
ClickBodyColorColorGets or sets the color of the button when it is in Korzh.EasyQuery.WinForms.MacButton.MState.stClick state.
ClickBorderColorColorGets or sets the color of the border when the button is in Korzh.EasyQuery.WinForms.MacButton.MState.stClick state.
InactiveBodyColorColorGets or sets the color of the button when it is in Korzh.EasyQuery.WinForms.MacButton.MState.stNotIn state.
InactiveBorderColorColorGets or sets the color of the border when the button is in Korzh.EasyQuery.WinForms.MacButton.MState.stNotIn state.
MacStyleboolGets or sets a value indicating whether [standard button].
RoundedboolGets or sets a value indicating whether this Korzh.EasyQuery.WinForms.MacButton is displayed as ellipse in contrast to rectangle.
RoundRadiusintGets or sets the round radius.

Methods

NameTypeDescription
OnClick(EventArgs e)voidOverrides System.Windows.Forms.Control.OnClick(System.EventArgs) method. event.
OnDragEnter(DragEventArgs e)voidOverrides System.Windows.Forms.Control.OnDragEnter(System.Windows.Forms.DragEventArgs) method.
OnDragLeave(EventArgs e)voidOverrides System.Windows.Forms.Control.OnDragLeave(System.EventArgs) method.
OnMouseDown(MouseEventArgs e)voidOverrides System.Windows.Forms.Control.OnMouseDown(System.Windows.Forms.MouseEventArgs) method.
OnMouseEnter(EventArgs e)voidOverrides System.Windows.Forms.Control.OnMouseEnter(System.EventArgs) method.
OnMouseLeave(EventArgs e)voidOverrides System.Windows.Forms.Control.OnMouseLeave(System.EventArgs) method.
OnMouseUp(MouseEventArgs e)voidOverrides System.Windows.Forms.Control.OnMouseUp(System.Windows.Forms.MouseEventArgs) method.
OnPaint(PaintEventArgs e)voidOverrides System.Windows.Forms.Control.OnPaint(System.Windows.Forms.PaintEventArgs) method.
OnPaintBackground(PaintEventArgs e)voidOverrides System.Windows.Forms.Control.OnPaintBackground(System.Windows.Forms.PaintEventArgs) method.
OnResize(EventArgs e)voidRaises the System.Windows.Forms.Control.Resize event.