Search
Button Members
Constructors Properties Methods Events
 


Represents a custom-drawn button.

The following tables list the members exposed by the Button type.

 Public Constructors

  Name Description

Button

Initializes a new instance of the Button class.

 Public Properties

  Name Description

BackgroundBrush

Gets or sets the brush used to fill the button when it is in normal state. (Inherited from ButtonBase.)

BackgroundBrushDisabled

Gets or sets the brush used to fill the button when it is disabled. (Inherited from ButtonBase.)

BackgroundBrushDown

Gets or sets the brush used to fill the button when it is being pressed. (Inherited from ButtonBase.)

BackgroundBrushOver

Gets or sets the brush used to fill the button when it is being hovered. (Inherited from ButtonBase.)

BorderBrush

Gets or sets the brush used to draw the button border. (Inherited from ButtonBase.)

BorderBrushDisabled

Gets or sets the brush used to draw the button border when the button is disabled. (Inherited from ButtonBase.)

BorderBrushDown

Gets or sets the brush used to draw the button border when the button is being pressed. (Inherited from ButtonBase.)

BorderBrushOver

Gets or sets the brush used to draw the button border when the button is being hovered. (Inherited from ButtonBase.)

BorderThickness

Gets or sets the thickness of the button border. (Inherited from ButtonBase.)

CustomDraw

Gets or set the type of custom drawing for the button. (Inherited from ButtonBase.)

FocusOnClick

Gets or sets a value indicating whether the button receives the input focus when it is clicked by the mouse. (Inherited from ButtonBase.)

FocusPadding

Gets or sets the offset of the focus frame relative to the control border.

Font

Gets or sets the font of the text displayed by the button. (Inherited from ButtonBase.)

ForegroundBrush

Gets or sets the brush used to draw the button content. (Inherited from ButtonBase.)

ForegroundBrushDisabled

Gets or sets the brush used to draw the button content when the button is disabled. (Inherited from ButtonBase.)

ForegroundBrushDown

Gets or sets the brush used to draw the button content when the button is being pressed. (Inherited from ButtonBase.)

ForegroundBrushOver

Gets or sets the brush used to draw the button content when the button is being hovered. (Inherited from ButtonBase.)

Image

Gets or sets the image that is displayed on a button control.

ImageAlign

Gets or sets the alignment of the image in the button control.

ShowFocus

Gets or sets a value indicating whether a focus rectangle should be drawn when the control has the input focus. (Inherited from ButtonBase.)

Text

Gets or sets the text display by the button. (Inherited from ButtonBase.)

TextAlign

Gets or sets the alignment of the text in the button control. (Inherited from ButtonBase.)

 Protected Methods

  Name Description

Dispose

Control.Dispose override.

OnDoubleClick

Control.OnDoubleClick override. (Inherited from ButtonBase.)

OnDown

Raises the Down event. (Inherited from ButtonBase.)

OnDraw

Raises the Draw event. (Inherited from ButtonBase.)

OnGotFocus

Control.OnGotFocus override. (Inherited from ButtonBase.)

OnLostFocus

Control.OnLostFocus override. (Inherited from ButtonBase.)

OnMouseDown

Control.OnMouseDown override.

OnMouseEnter

Control.OnMouseEnter override.

OnMouseLeave

Control.OnMouseLeave override.

OnMouseMove

Control.OnMouseMove override. (Inherited from ButtonBase.)

OnMouseUp

Control.OnMouseUp override.

OnPaint

Control.OnPaint override.

OnPaintBackground

Control.OnPaintBackground override. (Inherited from ButtonBase.)

ProcessDialogKey

Control.ProcessDialogKey override. (Inherited from ButtonBase.)

 Public Events

  Name Description

Down

Occurs when the mouse is pressed over the button. (Inherited from ButtonBase.)

Draw

Occurs when the button is being painted. (Inherited from ButtonBase.)

 See Also