[]
        
(Showing Draft Content)

C1.Framework.CheckButtonElement

CheckButtonElement Class

Check (toggle) button.

Namespace: C1.Framework
Assembly: C1.Win.4.8.dll
Syntax
public class CheckButtonElement : ButtonElement, ISupportUia, IToolTipElement, IUiaButton, IUiaInvokeProvider

Constructors

Name Description
CheckButtonElement()

Initializes a new CheckButtonElement.

CheckButtonElement(Style)

Initializes a new CheckButtonElement with specified style.

CheckButtonElement(Style, params object[])

Initializes a new CheckButtonElement with specified style and content.

CheckButtonElement(params object[])

Initializes a new CheckButtonElement with specified content.

Properties

Name Description
CheckBoxIndex

Gets or sets the index of the CheckBox element within the button.

CheckState

Gets or sets the button's CheckState (can be checked, unchecked, or indeterminate).

CheckboxImageElement

Returns reference to the Element used to display chich box mark.

Checked

Gets or sets whether the button is checked.

Methods

Name Description
GetCheckboxImage()

Gets a check box image as a function of the current checkbox state.

GetCheckboxImage(CheckBoxState)

Gets a check box image as a function of the specified checkbox state.

GetCheckedImage(bool)

Returns the check box image.

GetImage(CheckBoxState)

Returns the check box image.

OnCheckedChanged()

Called when check box state is changed.

OnClick()

Fires the Click event.

OnKeyUp(KeyEventArgs)

Called by the host control when the user releases a key and this Element has the focus.

OnLostFocus(EventArgs)

Called by the host control when this Element loses the focus.

OnMouseDown(MouseEventArgs)

Called by the host control when the user presses a mouse button over this Element.

OnMouseLeaveHover(EventArgs)

Called by the host control when the mouse leaves this Element, even if another element has captured the mouse.

OnMouseUp(MouseEventArgs)

Called by the host control when the user releases a mouse button over this Element.

OnStateChanged(ElementFlags)

Called by the host control when the state of this Element changes.