Table of Contents

Class SpeedColorButton

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Implements SpeedButton for editing of the Color values.

public class SpeedColorButton : SpeedButton, IBaseObjectWithId, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo, ICommandSource
Inheritance
SpeedColorButton
Implements

Constructors

SpeedColorButton()

Initializes a new instance of the SpeedColorButton class.

SpeedColorButton(Control)

Initializes a new instance of the SpeedColorButton class.

Fields

DefaultColorImageSizeDips

Gets or sets default size of the color image.

Properties

ActionKind

Gets or sets what happens when the user clicks this button.

ColorDialog

Gets ColorDialog used in the control.

ColorImageSizeDips

Gets or sets size of the color image in device-independent units.

DisabledImageColor

Gets or sets disabled image color.

PopupWindow

Gets attached popup window with ColorListBox.

ShowDialog

Gets or sets whether to show ColorDialog when button is clicked.

ShowPopupWindow

Gets or sets whether to show popup window with ColorListBox when button is clicked.

Text

Gets or sets Value as string.

UseDisabledImageColor

Gets or sets whether to use DisabledImageColor for painting of the color image when control is disabled.

Value

Gets or sets selected color.

Methods

DisposeManaged()

Override to dispose managed resources. Here we dispose all used object references.

GetColorAsString()

Gets color value as string.

OnClick(EventArgs)

Called when the control is clicked.

OnColorImageChanged(bool)

Raised when color image is changed.

OnEnabledChanged(EventArgs)

Called when the enabled of the Enabled property changes.

OnLongTap(LongTapEventArgs)

Called when the LongTap event is raised.

PopupWindowAfterHideHandler(object?, EventArgs)

Fired after popup window is closed. Applies color selected in the popup window to the control.

ShowColorDialog()

Shows color dialog.

ShowColorPopup()

Shows color popup.

ShowColorSelector(ClickActionKind?)

Shows color popup or dialog (depends on the value of ActionKind property). Called when control is clicked.

Events

ColorToString

Occurs when string is converted to Color.

StringToColor

Occurs when string is converted to Color.

ValueChanged

Occurs when Value property is changed.