[]
        
(Showing Draft Content)

FarPoint.Win.FpButton

FpButton Class

Represents the FarPoint button control.

Namespace: FarPoint.Win
Assembly: FarPoint.Win.dll
Syntax
public class FpButton : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IButtonControl, ISerializeSupport, ISerializable
Public Class FpButton
    Inherits Control
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IButtonControl, ISerializeSupport, ISerializable

Constructors

Name Description
FpButton()

Creates a new FarPoint button control.

FpButton(SerializationInfo, StreamingContext)

Initializes a new instance of the FpButton class.

Fields

Name Description
theme

Internal use only. Theme for visual style.

Properties

Name Description
BackColor2

Gets or sets the secondary color used when drawing a gradient button.

BackgroundStyle

Gets or sets how the background is rendered.

DarkColor

Gets or sets the color to draw the three-dimensional outside border of the button.

DialogResult

Gets or sets the value returned to the parent when the button is clicked.

GradientMode

Gets or sets the drawing style of a gradient button.

HorizontalAlignment

Gets or sets the horizontal alignment of text in the button.

HotkeyPrefix

Gets or sets whether the ampersand character underlines text.

LightColor

Gets or sets the color to draw the three-dimensional inside border of the button.

Picture

Gets or sets the image displayed in the button.

PictureDown

Gets or sets the image displayed in the button when the button is pressed.

ShadowSize

Gets or sets the size of shadow around the button.

TextAlign

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

TextDown

Gets or sets the text to display when the button is pressed.

TextIndent

Gets or sets the text indent.

TextOrientation

Gets or sets how text orients itself when painting the button.

TextRotationAngle

Gets or sets the text rotation angle.

TwoState

Gets or sets whether the button is a two-state button.

UseVisualStyleBackColor

Gets or sets whether the backcolor is drawn via VisualStyles.

Value

Gets or sets the value of the button.

VerticalAlignment

Gets or sets the vertical alignment of text in the button.

VisualStyles

Gets or sets whether to use visual styles.

WordWrap

Gets or sets whether the text that does not fit on one line wraps to multiple lines within the button.

Methods

Name Description
Dispose(bool)
DoPaint(FpButtonPaintArgs)

Paints.

DoPaint(Graphics, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, bool, bool, string, string, ButtonTextAlign, TextOrientation, bool, int, Color, Color, Image, Image, bool, bool)

Paints the cell with the button.

DoPaint(Graphics, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, bool, bool, string, string, ButtonTextAlign, TextOrientation, bool, int, Color, Color, Image, Image, bool, HotkeyPrefix, VisualStyles, bool)

Paints the cell with the button.

GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data needed to serialize the target object. Saving all FpButton's own properties and some public, browsable design time properies of the control base

GetPreferredSize(FpButtonPaintArgs)

Calculates the height and width required to display the button text and picture.

GetPreferredSize(Graphics, Size, Font, string, string, ButtonTextAlign, TextOrientation, bool, int, Image, Image, HotkeyPrefix)

Calculates the height and width required to display the button text and picture.

GetPreferredSize(Graphics, Size, Font, string, string, ButtonTextAlign, TextOrientation, bool, int, Image, Image, HotkeyPrefix, double)

Calculates the height and width required to display the button text and picture.

GetPreferredSize(Graphics, Size, Font, string, string, ButtonTextAlign, bool, int, Image, Image)

Calculates the height and width required to display the button text and picture.

IsInputKey(Keys)

Internal use only.

NotifyDefault(bool)

Notifies a control that this button is the default button for appearance sake.

OnAfterFocus(EventArgs)

Raises the AfterFocus event.

OnButtonClicked(EventArgs)

Raises the ButtonClicked event.

OnDoubleClick(EventArgs)

Internal use only.

OnGotFocus(EventArgs)

Internal use only.

OnKeyDown(KeyEventArgs)

Internal use only.

OnKeyPress(KeyPressEventArgs)

Internal use only.

OnKeyUp(KeyEventArgs)

Internal use only.

OnLostFocus(EventArgs)

Internal use only.

OnMouseDown(MouseEventArgs)

Internal use only.

OnMouseMove(MouseEventArgs)

Internal use only.

OnPaintBackground(PaintEventArgs)

Paints the background.

OnThemeChanged(object, EventArgs)

Handles the ThemeChanged event for the VisualStyleTheme

PerformClick()

Generates a Click event for the control.

ReconstructControlBaseData(SerializationInfo, StreamingContext)

Reconstructs the control base data saved with SaveControlBaseData method.

ReconstructControlBaseData(XmlNodeReader)

Internal use only. Reconstructs control base data.

SaveControlBaseData(SerializationInfo, StreamingContext)

Saving some public, browsable design time properties of the control base

SaveControlBaseData(XmlTextWriter)

Internal use only. Saves control base data.

Serialize(XmlTextWriter)

Internal use only. Serializes.

WndProc(ref Message)

Internal use only.

Events

Name Description
AfterFocus

Occurs after the control receives focuse.

ButtonClicked

Occurs when the button control is clicked.