C# Class ComponentFactory.Krypton.Toolkit.PaletteRedirectTripleMetric

Redirect back/border/content/metrics based on the incoming state of the request.
Inheritance: PaletteRedirectTriple
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

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.

PaletteRedirectTripleMetric ( IPalette target ) : System

Initialize a new instance of the PaletteRedirectTripleMetric class.

PaletteRedirectTripleMetric ( IPalette target, IPaletteTriple disabled, IPaletteMetric disableMetric, IPaletteTriple normal, IPaletteMetric normalMetric ) : System

Initialize a new instance of the PaletteRedirectTripleMetric class.

ResetRedirectStates ( ) : void

Reset the redirection states to null.

SetRedirectStates ( IPaletteTriple disabled, IPaletteMetric disableMetric, IPaletteTriple normal, IPaletteMetric normalMetric ) : void

Set the redirection states.

Private Methods

Méthode Description
GetInherit ( PaletteState state ) : IPaletteMetric

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

PaletteRedirectTripleMetric() public méthode

Initialize a new instance of the PaletteRedirectTripleMetric class.
public PaletteRedirectTripleMetric ( IPalette target ) : System
target IPalette Initial palette target for redirection.
Résultat System

PaletteRedirectTripleMetric() public méthode

Initialize a new instance of the PaletteRedirectTripleMetric class.
public PaletteRedirectTripleMetric ( IPalette target, IPaletteTriple disabled, IPaletteMetric disableMetric, IPaletteTriple normal, IPaletteMetric normalMetric ) : System
target IPalette Initial palette target for redirection.
disabled IPaletteTriple Redirection for disabled state requests.
disableMetric IPaletteMetric Redirection for disabled metric requests.
normal IPaletteTriple Redirection for normal state requests.
normalMetric IPaletteMetric Redirection for normal metric requests.
Résultat System

ResetRedirectStates() public méthode

Reset the redirection states to null.
public ResetRedirectStates ( ) : void
Résultat void

SetRedirectStates() public méthode

Set the redirection states.
public SetRedirectStates ( IPaletteTriple disabled, IPaletteMetric disableMetric, IPaletteTriple normal, IPaletteMetric normalMetric ) : void
disabled IPaletteTriple Redirection for disabled state requests.
disableMetric IPaletteMetric Redirection for disabled metric requests.
normal IPaletteTriple Redirection for normal state requests.
normalMetric IPaletteMetric Redirection for normal metric requests.
Résultat void