C# Class ComponentFactory.Krypton.Toolkit.PaletteInputControlTripleRedirect

Implement storage for palette border, background and content for input control common state.
Inheritance: Storage, IPaletteTriple, IPaletteMetric
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Свойство Type Description
ShouldSerializeBack bool
ShouldSerializeBorder bool
ShouldSerializeContent bool

Méthodes publiques

Méthode Description
GetMetricBool ( PaletteState state, PaletteMetricBool metric ) : InheritBool

Gets a boolean metric value.

GetMetricInt ( PaletteState state, PaletteMetricInt metric ) : int

Gets an integer metric value.

GetMetricPadding ( PaletteState state, PaletteMetricPadding metric ) : Padding

Gets a padding metric value.

PaletteInputControlTripleRedirect ( PaletteRedirect redirect, PaletteBackStyle backStyle, PaletteBorderStyle borderStyle, PaletteContentStyle contentStyle, NeedPaintHandler needPaint ) : System

Initialize a new instance of the PaletteInputControlTripleRedirect class.

PopulateFromBase ( PaletteState state ) : void

Populate values from the base palette.

SetRedirector ( PaletteRedirect redirect ) : void

Update the redirector with new reference.

SetStyles ( InputControlStyle style ) : void

Update each individual style based on the input control style.

SetStyles ( PaletteBackStyle backStyle, PaletteBorderStyle borderStyle, PaletteContentStyle contentStyle ) : void

Update each individual style.

Méthodes protégées

Méthode Description
OnNeedPaint ( object sender, bool needLayout ) : void

Handle a change event from palette source.

Private Methods

Méthode Description
ShouldSerializeBack ( ) : bool
ShouldSerializeBorder ( ) : bool
ShouldSerializeContent ( ) : bool

Method Details

GetMetricBool() public méthode

Gets a boolean metric value.
public GetMetricBool ( PaletteState state, PaletteMetricBool metric ) : InheritBool
state PaletteState Palette value should be applicable to this state.
metric PaletteMetricBool Requested metric.
Résultat InheritBool

GetMetricInt() public méthode

Gets an integer metric value.
public GetMetricInt ( PaletteState state, PaletteMetricInt metric ) : int
state PaletteState Palette value should be applicable to this state.
metric PaletteMetricInt Requested metric.
Résultat int

GetMetricPadding() public méthode

Gets a padding metric value.
public GetMetricPadding ( PaletteState state, PaletteMetricPadding metric ) : Padding
state PaletteState Palette value should be applicable to this state.
metric PaletteMetricPadding Requested metric.
Résultat Padding

OnNeedPaint() protected méthode

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.
Résultat void

PaletteInputControlTripleRedirect() public méthode

Initialize a new instance of the PaletteInputControlTripleRedirect class.
public PaletteInputControlTripleRedirect ( PaletteRedirect redirect, PaletteBackStyle backStyle, PaletteBorderStyle borderStyle, PaletteContentStyle contentStyle, NeedPaintHandler needPaint ) : System
redirect PaletteRedirect Inheritence redirection instance.
backStyle PaletteBackStyle Initial background style.
borderStyle PaletteBorderStyle Initial border style.
contentStyle PaletteContentStyle Initial content style.
needPaint NeedPaintHandler Delegate for notifying paint requests.
Résultat System

PopulateFromBase() public méthode

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

SetRedirector() public méthode

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

SetStyles() public méthode

Update each individual style based on the input control style.
public SetStyles ( InputControlStyle style ) : void
style InputControlStyle New input control style.
Résultat void

SetStyles() public méthode

Update each individual style.
public SetStyles ( PaletteBackStyle backStyle, PaletteBorderStyle borderStyle, PaletteContentStyle contentStyle ) : void
backStyle PaletteBackStyle New background style.
borderStyle PaletteBorderStyle New border style.
contentStyle PaletteContentStyle New content style.
Résultat void