C# Класс ComponentFactory.Krypton.Toolkit.KryptonDropButton

Наследование: VisualSimpleBase, IButtonControl, IContentValues
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetPositionH KryptonContextMenuPositionH
GetPositionV KryptonContextMenuPositionV
OnButtonClick void
OnButtonSelect void
OnButtonTextChanged void
OnContextMenuClosed void
OnKryptonContextMenuClosed void
ResetButtonStyle void
ShouldSerializeButtonStyle bool
ShouldSerializeImages bool
ShouldSerializeOverrideDefault bool
ShouldSerializeOverrideFocus bool
ShouldSerializeStateCommon bool
ShouldSerializeStateDisabled bool
ShouldSerializeStateNormal bool
ShouldSerializeStatePressed bool
ShouldSerializeStateTracking bool
ShouldSerializeText bool
ShouldSerializeValues bool
ShowDropDown bool

Открытые методы

Метод Описание
GetImage ( PaletteState state ) : Image

Gets the content image.

GetImageTransparentColor ( PaletteState state ) : Color

Gets the image color that should be transparent.

GetLongText ( ) : string

Gets the content long text.

GetShortText ( ) : string

Gets the content short text.

KryptonDropButton ( ) : System

Initialize a new instance of the KryptonDropButton class.

NotifyDefault ( bool value ) : void

Notifies a control that it is the default button so that its appearance and behavior is adjusted accordingly.

PerformClick ( ) : void

Generates a Click event for the control.

PerformDropDown ( ) : void

Generates a DropDown event for the control.

ResetText ( ) : void

Resets the Text property to its default value.

SetFixedState ( PaletteState state ) : void

Fix the control to a particular palette state.

Защищенные методы

Метод Описание
ContextMenuClosed ( ) : void

Called when a context menu has just been closed.

CreateButtonValues ( NeedPaintHandler needPaint ) : ButtonValues

Creates a values storage object appropriate for control.

OnClick ( EventArgs e ) : void

Raises the Click event.

OnCommandPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles a change in the property of an attached command.

OnDropDown ( ContextPositionMenuArgs e ) : void

Raises the DropDown event.

OnEnabledChanged ( EventArgs e ) : void

Raises the EnabledChanged event.

OnGotFocus ( EventArgs e ) : void

Raises the GotFocus event.

OnKryptonCommandChanged ( EventArgs e ) : void

Raises the KryptonCommandChanged event.

OnLostFocus ( EventArgs e ) : void

Raises the LostFocus event.

ProcessMnemonic ( char charCode ) : bool

Processes a mnemonic character.

SetStyles ( ButtonStyle buttonStyle ) : void

Update the state objects to reflect the new button style.

WndProc ( Message &m ) : void

Process Windows-based messages.

Приватные методы

Метод Описание
GetPositionH ( ) : KryptonContextMenuPositionH
GetPositionV ( ) : KryptonContextMenuPositionV
OnButtonClick ( object sender, MouseEventArgs e ) : void
OnButtonSelect ( object sender, MouseEventArgs e ) : void
OnButtonTextChanged ( object sender, EventArgs e ) : void
OnContextMenuClosed ( object sender, EventArgs e ) : void
OnKryptonContextMenuClosed ( object sender, EventArgs e ) : void
ResetButtonStyle ( ) : void
ShouldSerializeButtonStyle ( ) : bool
ShouldSerializeImages ( ) : bool
ShouldSerializeOverrideDefault ( ) : bool
ShouldSerializeOverrideFocus ( ) : bool
ShouldSerializeStateCommon ( ) : bool
ShouldSerializeStateDisabled ( ) : bool
ShouldSerializeStateNormal ( ) : bool
ShouldSerializeStatePressed ( ) : bool
ShouldSerializeStateTracking ( ) : bool
ShouldSerializeText ( ) : bool
ShouldSerializeValues ( ) : bool
ShowDropDown ( ) : bool

Описание методов

ContextMenuClosed() защищенный Метод

Called when a context menu has just been closed.
protected ContextMenuClosed ( ) : void
Результат void

CreateButtonValues() защищенный Метод

Creates a values storage object appropriate for control.
protected CreateButtonValues ( NeedPaintHandler needPaint ) : ButtonValues
needPaint NeedPaintHandler Delegate for notifying paint requests.
Результат ButtonValues

GetImage() публичный Метод

Gets the content image.
public GetImage ( PaletteState state ) : Image
state PaletteState The state for which the image is needed.
Результат Image

GetImageTransparentColor() публичный Метод

Gets the image color that should be transparent.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState The state for which the image is needed.
Результат Color

GetLongText() публичный Метод

Gets the content long text.
public GetLongText ( ) : string
Результат string

GetShortText() публичный Метод

Gets the content short text.
public GetShortText ( ) : string
Результат string

KryptonDropButton() публичный Метод

Initialize a new instance of the KryptonDropButton class.
public KryptonDropButton ( ) : System
Результат System

NotifyDefault() публичный Метод

Notifies a control that it is the default button so that its appearance and behavior is adjusted accordingly.
public NotifyDefault ( bool value ) : void
value bool true if the control should behave as a default button; otherwise false.
Результат void

OnClick() защищенный Метод

Raises the Click event.
protected OnClick ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
Результат void

OnCommandPropertyChanged() защищенный Метод

Handles a change in the property of an attached command.
protected OnCommandPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
sender object Source of the event.
e System.ComponentModel.PropertyChangedEventArgs A PropertyChangedEventArgs that contains the event data.
Результат void

OnDropDown() защищенный Метод

Raises the DropDown event.
protected OnDropDown ( ContextPositionMenuArgs e ) : void
e ContextPositionMenuArgs An ContextPositionMenuArgs containing the event data.
Результат void

OnEnabledChanged() защищенный Метод

Raises the EnabledChanged event.
protected OnEnabledChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
Результат void

OnGotFocus() защищенный Метод

Raises the GotFocus event.
protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
Результат void

OnKryptonCommandChanged() защищенный Метод

Raises the KryptonCommandChanged event.
protected OnKryptonCommandChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
Результат void

OnLostFocus() защищенный Метод

Raises the LostFocus event.
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
Результат void

PerformClick() публичный Метод

Generates a Click event for the control.
public PerformClick ( ) : void
Результат void

PerformDropDown() публичный Метод

Generates a DropDown event for the control.
public PerformDropDown ( ) : void
Результат void

ProcessMnemonic() защищенный Метод

Processes a mnemonic character.
protected ProcessMnemonic ( char charCode ) : bool
charCode char The mnemonic character entered.
Результат bool

ResetText() публичный Метод

Resets the Text property to its default value.
public ResetText ( ) : void
Результат void

SetFixedState() публичный Метод

Fix the control to a particular palette state.
public SetFixedState ( PaletteState state ) : void
state PaletteState Palette state to fix.
Результат void

SetStyles() защищенный Метод

Update the state objects to reflect the new button style.
protected SetStyles ( ButtonStyle buttonStyle ) : void
buttonStyle ButtonStyle New button style.
Результат void

WndProc() защищенный Метод

Process Windows-based messages.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message A Windows-based message.
Результат void