C# 클래스 ComponentFactory.Krypton.Toolkit.KryptonColorButton

상속: VisualSimpleBase, IButtonControl, IContentValues
파일 보기 프로젝트 열기: ComponentFactory/Krypton 1 사용 예제들

Private Properties

프로퍼티 타입 설명
DecideOnVisible void
GetPositionH KryptonContextMenuPositionH
GetPositionV KryptonContextMenuPositionV
HookContextMenuEvents void
OnButtonClick void
OnButtonSelect void
OnButtonTextChanged void
OnClickMoreColors void
OnClickNoColor void
OnColumnsSelectedColorChanged void
OnColumnsTrackingColor 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
UpdateContextMenu void
UpdateRecentColors void

공개 메소드들

메소드 설명
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.

KryptonColorButton ( ) : System

Initialize a new instance of the KryptonColorButton class.

NotifyDefault ( bool value ) : void

Notifies a control that it is the default color 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 ) : ColorButtonValues

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.

OnMoreColors ( CancelEventArgs e ) : void

Raises the MoreColors event.

OnSelectedColorChanged ( Color selectedColor ) : void

Raises the SelectedColorChanged event.

OnTrackingColor ( ColorEventArgs e ) : void

Raises the TrackingColor event.

ProcessMnemonic ( char charCode ) : bool

Processes a mnemonic character.

SetStyles ( ButtonStyle buttonStyle ) : void

Update the state objects to reflect the new color button style.

WndProc ( Message &m ) : void

Process Windows-based messages.

비공개 메소드들

메소드 설명
DecideOnVisible ( KryptonContextMenuItemBase visible, KryptonContextMenuItemBase target ) : void
GetPositionH ( ) : KryptonContextMenuPositionH
GetPositionV ( ) : KryptonContextMenuPositionV
HookContextMenuEvents ( KryptonContextMenuCollection collection, bool hook ) : void
OnButtonClick ( object sender, MouseEventArgs e ) : void
OnButtonSelect ( object sender, MouseEventArgs e ) : void
OnButtonTextChanged ( object sender, EventArgs e ) : void
OnClickMoreColors ( object sender, EventArgs e ) : void
OnClickNoColor ( object sender, EventArgs e ) : void
OnColumnsSelectedColorChanged ( object sender, ColorEventArgs e ) : void
OnColumnsTrackingColor ( object sender, ColorEventArgs 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
UpdateContextMenu ( ) : void
UpdateRecentColors ( Color color ) : void

메소드 상세

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 ) : ColorButtonValues
needPaint NeedPaintHandler Delegate for notifying paint requests.
리턴 ColorButtonValues

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

KryptonColorButton() 공개 메소드

Initialize a new instance of the KryptonColorButton class.
public KryptonColorButton ( ) : System
리턴 System

NotifyDefault() 공개 메소드

Notifies a control that it is the default color 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 color 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

OnMoreColors() 보호된 메소드

Raises the MoreColors event.
protected OnMoreColors ( CancelEventArgs e ) : void
e CancelEventArgs An CancelEventArgs that contains the event data.
리턴 void

OnSelectedColorChanged() 보호된 메소드

Raises the SelectedColorChanged event.
protected OnSelectedColorChanged ( Color selectedColor ) : void
selectedColor Color New selected color.
리턴 void

OnTrackingColor() 보호된 메소드

Raises the TrackingColor event.
protected OnTrackingColor ( ColorEventArgs e ) : void
e ColorEventArgs An ColorEventArgs 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 color button style.
protected SetStyles ( ButtonStyle buttonStyle ) : void
buttonStyle ButtonStyle New color button style.
리턴 void

WndProc() 보호된 메소드

Process Windows-based messages.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message A Windows-based message.
리턴 void