[]
        
(Showing Draft Content)

C1.Win.Input.Base.C1ButtonBase

C1ButtonBase Class

Implements the basic functionality common to C1Button, C1CheckBox, C1RadioButton and C1SplitButton controls.

Namespace: C1.Win.Input.Base
Assembly: C1.Win.Input.8.dll
Syntax
public abstract class C1ButtonBase : C1InputControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IView, ISupportUia, ISupportInitialize

Constructors

Name Description
C1ButtonBase(BaseThemeProvider)

Initializes a new instance of the C1ButtonBase control.

Properties

Name Description
AutoSize

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

BackColor
DefaultIconSize

Gets or sets the default icon size of control.

DefaultImeMode

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

DefaultSize

Gets the default size of the control.

ForeColor
Icon

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

Image

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

ImageAlign

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

ImageIndex

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

ImageKey

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

ImageList

Gets or sets the ImageList that contains the Image displayed on a button control.

IsDefault

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

Text

Gets or sets the text associated with this control.

TextAlign

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

TextImageRelation

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

Trimming

Gets or sets how to trim characters that do not fit in the space available.

UseMnemonic

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.

Methods

Name Description
ApplyStyle()

Applies the style to control view.

Dispose(bool)

Releases the unmanaged resources used by the C1ButtonBase control.

GetPreferredSize(Size)

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

IsInputKey(Keys)

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

OnGotFocus(EventArgs)

Raises the GotFocus event.

OnKeyDown(KeyEventArgs)

Raises the KeyDown event.

OnKeyUp(KeyEventArgs)

Raises the OnKeyUp(KeyEventArgs) event.

OnMouseUp(MouseEventArgs)

Raises the OnMouseUp(MouseEventArgs) event.

WndProc(ref Message)

Processes Windows messages.

Events

Name Description
AutoSizeChanged

Occurs when the value of the AutoSize property changes.