[]
        
(Showing Draft Content)

FarPoint.Win.FpCheckBox

FpCheckBox Class

Represents a FarPoint check box control.

Inheritance
FpCheckBox
Namespace: FarPoint.Win
Assembly: FarPoint.Win.dll
Syntax
public class FpCheckBox : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
Public Class FpCheckBox
    Inherits Control
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable

Constructors

Name Description
FpCheckBox()

Creates a new FarPoint check box control.

Fields

Name Description
DEFAULT_PICTURE_HEIGHT

Default check box picture height.

DEFAULT_PICTURE_WIDTH

Default check box picture width.

theme

Internal use. Set theme for Visual Styles.

Properties

Name Description
AutoCheck

Gets or sets whether the user can toggle the state of the check box control
by clicking the control or by pressing the spacebar when the control has the focus.

BackgroundImage

Gets or sets the picture to use as the background image of the check box control.

Caption

Gets or sets the default text displayed in the check box.

CheckState

Gets or sets the state of the check box.

Checked

Gets or sets whether the check box is checked.

FocusRectangle

Gets or sets whether focus rectangle is displayed.

HotkeyPrefix

Gets or sets whether the ampersand character underlines text.

Picture

Gets or sets the array of pictures to use as the check box image.

PictureAlignH

Gets or sets the horizontal alignment of the check box picture in the control.

PictureAlignV

Gets or sets the vertical alignment of the check box picture in the control.

PictureHeight

Gets or sets the height of the check box picture in the control.

PictureWidth

Gets or sets the width of the check box picture in the control.

TextAlign

Gets or sets the alignment of the text relative to the picture in the check box control.

TextFalse

Gets or sets the text displayed when the state of the check box control is false.

TextIndeterminate

Gets or sets the text displayed when the state of the check box control is indeterminate.

TextTrue

Gets or sets the text displayed when the state of the check box control is true.

ThreeState

Gets or sets whether the check box control has a third state.

Value

Gets or sets the value of the check box control.

VisualStyles

Gets or sets whether to use visual styles.

Methods

Name Description
AdjustStringFormat(ref StringFormat)

Adjusts the format.

Dispose(bool)

Disposes.

DoPaint(Graphics, Rectangle, Color, Color, HorizontalAlignment, VerticalAlignment, CheckValue, bool, Font, string, string, string, string, ButtonTextAlign, CheckBoxPicture, bool, bool, bool, Picture, StringFormat, bool, int, int, VisualStyles, bool, FocusRectangle, bool, float, bool)

Paints the check box.

DoPaint(Graphics, Rectangle, Color, Color, HorizontalAlignment, VerticalAlignment, CheckValue, bool, Font, string, string, string, string, ButtonTextAlign, CheckBoxPicture, bool, bool, bool, Picture, StringFormat, bool, int, int, VisualStyles, bool, FocusRectangle, float, bool)

Paints the check box.

DoPaint(Graphics, Rectangle, Color, Color, HorizontalAlignment, VerticalAlignment, CheckValue, bool, Font, string, string, string, string, ButtonTextAlign, CheckBoxPicture, bool, bool, bool, Picture, StringFormat, bool, int, int, VisualStyles, bool, float, bool)

Paints the check box.

DoPaint(Graphics, Rectangle, Color, Color, HorizontalAlignment, VerticalAlignment, CheckValue, bool, Font, string, string, string, string, ButtonTextAlign, CheckBoxPicture, bool, bool, bool, Picture, StringFormat, bool, float, bool)

Paints the check box with the default picture height and width.

GetPreferredSize(Graphics, Size, object, Font, string, string, string, string, CheckBoxPicture, ButtonTextAlign, bool, bool, HotkeyPrefix)

Calculates the height and width to display the text and picture in the check box.

OnAfterFocus(EventArgs)

Raises the AfterFocus event.

OnBackgroundImageChanged(object, EventArgs)

Occurs when the background picture changes.

OnCheckStateChanged(EventArgs)

Raises the CheckStateChanged event.

OnCheckedChanged(EventArgs)

Raises the CheckedChanged event.

OnGotFocus(EventArgs)

Handles got focus event.

OnKeyDown(KeyEventArgs)

Handles key down event.

OnKeyUp(KeyEventArgs)

Handles key up event.

OnLostFocus(EventArgs)

Handles focus lost event.

OnMouseDown(MouseEventArgs)

Handles mouse down event.

OnMouseEnter(EventArgs)

Handles mouse enter event.

OnMouseLeave(EventArgs)

Handles mouse leave event.

OnMouseMove(MouseEventArgs)

Handles mouse move event.

OnMouseUp(MouseEventArgs)

Handles mouse up event.

OnPaint(PaintEventArgs)

Paints the check box.

OnPaintBackground(PaintEventArgs)

Paints the background.

OnThemeChanged(object, EventArgs)

Handles the ThemeChanged event for the VisualStyleTheme

ResetCaption()

Resets the text for the check box to its default setting.

ResetTextFalse()

Resets the text for the false state of the check box to its default setting.

ResetTextIndeterminate()

Resets the text for the indeterminate state of the check box to its default setting.

ResetTextTrue()

Resets the text for the true state of the check box to its default setting.

WndProc(ref Message)

Internal use only.

Events

Name Description
AfterFocus

Occurs after the control receives focus.

CheckChanged

Occurs when the check state of the control has changed.

CheckStateChanged

Occurs when the check state of the control is changing.