System.Windows.Forms.ButtonBase Members

The members of System.Windows.Forms.ButtonBase are listed below.

See Also: Inherited members from System.Windows.Forms.Control

Protected Constructors

Initializes a new instance of the System.Windows.Forms.ButtonBase class.

Public Properties

AutoEllipsisbool.

Gets or sets a value indicating whether the ellipsis character (...) appears at the right edge of the control, denoting that the control text extends beyond the specified length of the control.

override
AutoSizebool.

Gets or sets a value that indicates whether the control resizes based on its contents.

override
BackColorSystem.Drawing.Color.

Gets or sets the background color of the control.

[read-only]
FlatAppearanceFlatButtonAppearance.

Gets the appearance of the border and the colors used to indicate check state and mouse state.

FlatStyleFlatStyle.

Gets or sets the flat style appearance of the button control.

ImageSystem.Drawing.Image.

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

ImageAlignSystem.Drawing.ContentAlignment.

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

ImageIndexint.

Gets or sets the image list index value of the image displayed on the button control.

ImageKeystring.

Gets or sets the key accessor for the image in the ButtonBase.ImageList.

ImageListImageList.

Gets or sets the System.Windows.Forms.ImageList that contains the System.Drawing.Image displayed on a button control.

ImeModeImeMode.

Gets or sets the Input Method Editor (IME) mode supported by this control. This property is not relevant for this class.

override
Textstring. Documentation for this section has not yet been entered.
TextAlignSystem.Drawing.ContentAlignment.

Gets or sets the alignment of the text on the button control.

TextImageRelationTextImageRelation.

Gets or sets the position of text and image relative to each other.

UseCompatibleTextRenderingbool.

Gets or sets a value that determines whether to use the System.Drawing.Graphics class (ndptecgdiplus) or the System.Windows.Forms.TextRenderer class (ndptecgdi) to render text.

UseMnemonicbool.

Gets or sets a value indicating whether the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control.

UseVisualStyleBackColorbool.

Gets or sets a value that determines if the background is drawn using visual styles, if supported.

Protected Properties

[read-only]
override
CreateParamsCreateParams. Documentation for this section has not yet been entered.
[read-only]
override
DefaultImeModeImeMode.

Gets the default Input Method Editor (IME) mode supported by this control.

[read-only]
override
DefaultSizeSystem.Drawing.Size. Documentation for this section has not yet been entered.
IsDefaultbool.

Gets or sets a value indicating whether the button control is the default button.

Public Methods

override
GetPreferredSize(System.Drawing.Size) : System.Drawing.Size

Retrieves the size of a rectangular area into which a control can be fitted.

Protected Methods

override
CreateAccessibilityInstance() : AccessibleObject
Documentation for this section has not yet been entered.
override
Dispose(bool)

Releases the unmanaged resources used by the System.Windows.Forms.ButtonBase and optionally releases the managed resources.

override
OnEnabledChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnGotFocus(EventArgs)

Raises the Control.GotFocus event.

override
OnKeyDown(KeyEventArgs)

Raises the ButtonBase.OnKeyUp(KeyEventArgs) event.

override
OnKeyUp(KeyEventArgs)

Raises the ButtonBase.OnKeyUp(KeyEventArgs) event.

override
OnLostFocus(EventArgs)

Raises the ButtonBase.OnLostFocus(EventArgs) event.

override
OnMouseDown(MouseEventArgs)

Raises the Control.OnMouseDown(MouseEventArgs) event.

override
OnMouseEnter(EventArgs)

Raises the Control.OnMouseEnter(EventArgs) event.

override
OnMouseLeave(EventArgs)

Raises the Control.OnMouseLeave(EventArgs) event.

override
OnMouseMove(MouseEventArgs)

Raises the Control.OnMouseMove(MouseEventArgs) event.

override
OnMouseUp(MouseEventArgs)

Raises the ButtonBase.OnMouseUp(MouseEventArgs) event.

override
OnPaint(PaintEventArgs)

Raises the ButtonBase.OnPaint(PaintEventArgs) event.

override
OnParentChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnTextChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnVisibleChanged(EventArgs)
Documentation for this section has not yet been entered.
ResetFlagsandPaint()

Resets the System.Windows.Forms.Button control to the state before it is pressed and redraws it.

override
WndProc(ref Message)
Documentation for this section has not yet been entered.

Public Events

AutoSizeChanged

Occurs when the value of the ButtonBase.AutoSize property changes.

ImeModeChanged

Occurs when the ButtonBase.ImeMode property is changed. This event is not relevant for this class.