C# Class ComponentFactory.Krypton.Toolkit.PaletteTripleMetric

Implement a triple palette that exposes palette metrics.
Inheritance: PaletteTriple, IPaletteMetric
Mostra file Open project: Cocotteseb/Krypton Class Usage Examples

Public Methods

Method 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.

PaletteTripleMetric ( PaletteTripleMetricRedirect inherit, NeedPaintHandler needPaint ) : System

Initialize a new instance of the PaletteTripleMetric class.

SetInherit ( PaletteTripleMetricRedirect inherit ) : void

Sets the inheritence parent.

Method Details

GetMetricBool() public method

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.
return InheritBool

GetMetricInt() public method

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.
return int

GetMetricPadding() public method

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.
return Padding

PaletteTripleMetric() public method

Initialize a new instance of the PaletteTripleMetric class.
public PaletteTripleMetric ( PaletteTripleMetricRedirect inherit, NeedPaintHandler needPaint ) : System
inherit PaletteTripleMetricRedirect Source for palette defaulted values.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System

SetInherit() public method

Sets the inheritence parent.
public SetInherit ( PaletteTripleMetricRedirect inherit ) : void
inherit PaletteTripleMetricRedirect
return void