[]
        
(Showing Draft Content)

FarPoint.Win.FpMultiOption

FpMultiOption Class

Represents the FarPoint button control with multiple options.

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

Constructors

Name Description
FpMultiOption()

Creates a new multiple option button control.

Fields

Name Description
DEFAULT_PICTURE_HEIGHT

Default picture (image) height.

DEFAULT_PICTURE_WIDTH

Default picture (image) width.

theme

Internal use only. Visual style theme.

Properties

Name Description
BackgroundImage

Gets or sets the background image to use for the options button control.

Compact

Gets or Sets the Compact of the mutil option cellType.

HorizontalAlignment

Gets or sets how the option buttons are aligned horizontally.

ItemData

Gets or sets the item data list.

List

Gets or sets the list of the individual option buttons.

Orientation

Gets or sets how the multiple option buttons are oriented.

Picture

Gets or sets the pictures used for the different states of the option buttons.

PictureHeight

Gets or sets the height of the picture (image) in the control.

PictureWidth

Gets or sets the width of the picture (image) in the control.

TextAlign

Gets or sets how text is aligned relative to the picture.

UseMnemonic

Gets or sets whether special (shortcut) keys can be used to select items.

Value

Gets or sets the currently selected option from the multiple option buttons.

VerticalAlignment

Gets or sets how the option buttons are aligned vertically.

VisualStyles

Gets or sets whether to use visual styles.

Methods

Name Description
DoPaint(Graphics, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, ButtonTextAlign, RadioOrientation, RadioPicture, ArrayList, int, int, bool, bool, Picture, bool, bool)

Paints the multiple options buttons with default width and height.

DoPaint(Graphics, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, ButtonTextAlign, RadioOrientation, RadioPicture, ArrayList, int, int, bool, bool, Picture, bool, int, int, int, VisualStyles, bool, bool)

Paints the multiple options buttons.

DoPaint(Graphics, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, ButtonTextAlign, RadioOrientation, RadioPicture, ArrayList, int, int, bool, bool, Picture, bool, int, int, int, VisualStyles, bool, bool, bool)

Paints the multiple options buttons.

GetPreferredSize(Graphics, Font, ButtonTextAlign, RadioOrientation, RadioPicture, ArrayList)

Calculates the height and width required to display the text and picture (of the option buttons) in the control with default width and height.

GetPreferredSize(Graphics, Font, ButtonTextAlign, RadioOrientation, RadioPicture, ArrayList, int, int, bool)

Calculates the height and width required to display the text and picture (of the option buttons) in the control.

IsInputChar(char)

Determines whether the input is character.

OnAfterFocus(EventArgs)

Raises the AfterFocus event

OnBackgroundImageChanged(object, EventArgs)

Occurs if the background picture changes.

OnGotFocus(EventArgs)

Raises the System.Windows.Forms.Control.GotFocus event.

OnKeyUp(KeyEventArgs)

Handles the key up event.

OnMouseDown(MouseEventArgs)

Handles the mouse down event.

OnMouseLeave(EventArgs)

Handles the mouse leave event.

OnMouseMove(MouseEventArgs)

Handles the mouse move event.

OnMouseUp(MouseEventArgs)

Handles the mouse up event

OnPaint(PaintEventArgs)

Handles the paint event.

OnPaintBackground(PaintEventArgs)

Paints the background.

OnThemeChanged(object, EventArgs)

Handles the ThemeChanged event for the VisualStyleTheme

OnValueChanged(EventArgs)

Raises the ValueChanged event.

Events

Name Description
AfterFocus

Occurs after the control receives focus.

ValueChanged

Occurs when the user selects a different option (the value changes).