C# Class ComponentFactory.Krypton.Toolkit.PaletteComboBoxRedirect

Implement storage for a combo box state.
Inheritance: Storage
Mostra file Open project: ComponentFactory/Krypton

Private Properties

Property Type Description
ShouldSerializeComboBox bool
ShouldSerializeDropBack bool
ShouldSerializeItem bool

Public Methods

Method Description
PaletteComboBoxRedirect ( PaletteRedirect redirect, NeedPaintHandler needPaint ) : System

Initialize a new instance of the PaletteComboBoxRedirect class.

PopulateFromBase ( PaletteState state ) : void

Populate values from the base palette.

SetRedirector ( PaletteRedirect redirect ) : void

Update the redirector with new reference.

SetStyles ( ButtonStyle style ) : void

Update the combo box item style.

SetStyles ( InputControlStyle style ) : void

Update the combo box input control style.

SetStyles ( PaletteBackStyle style ) : void

Update the combo box drop background style.

Protected Methods

Method Description
OnNeedPaint ( object sender, bool needLayout ) : void

Handle a change event from palette source.

Private Methods

Method Description
ShouldSerializeComboBox ( ) : bool
ShouldSerializeDropBack ( ) : bool
ShouldSerializeItem ( ) : bool

Method Details

OnNeedPaint() protected method

Handle a change event from palette source.
protected OnNeedPaint ( object sender, bool needLayout ) : void
sender object Source of the event.
needLayout bool True if a layout is also needed.
return void

PaletteComboBoxRedirect() public method

Initialize a new instance of the PaletteComboBoxRedirect class.
public PaletteComboBoxRedirect ( PaletteRedirect redirect, NeedPaintHandler needPaint ) : System
redirect PaletteRedirect Inheritence redirection instance.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System

PopulateFromBase() public method

Populate values from the base palette.
public PopulateFromBase ( PaletteState state ) : void
state PaletteState Palette state to use when populating.
return void

SetRedirector() public method

Update the redirector with new reference.
public SetRedirector ( PaletteRedirect redirect ) : void
redirect PaletteRedirect Target redirector.
return void

SetStyles() public method

Update the combo box item style.
public SetStyles ( ButtonStyle style ) : void
style ButtonStyle New item style.
return void

SetStyles() public method

Update the combo box input control style.
public SetStyles ( InputControlStyle style ) : void
style InputControlStyle New input control style.
return void

SetStyles() public method

Update the combo box drop background style.
public SetStyles ( PaletteBackStyle style ) : void
style PaletteBackStyle New drop background style.
return void