C# Class ComponentFactory.Krypton.Toolkit.PaletteHeaderGroup

Implement storage for HeaderGroup states.
Inheritance: PaletteDouble, IPaletteMetric
Show file Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
ShouldSerializeHeaderPrimary bool
ShouldSerializeHeaderSecondary bool

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.

PaletteHeaderGroup ( PaletteHeaderGroupRedirect inheritHeaderGroup, PaletteHeaderPaddingRedirect inheritHeaderPrimary, PaletteHeaderPaddingRedirect inheritHeaderSecondary, NeedPaintHandler needPaint ) : System

Initialize a new instance of the PaletteHeaderGroup class.

SetInherit ( PaletteHeaderGroup inheritHeaderGroup ) : void

Sets the inheritence parent.

Private Methods

Method Description
ShouldSerializeHeaderPrimary ( ) : bool
ShouldSerializeHeaderSecondary ( ) : bool

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

PaletteHeaderGroup() public method

Initialize a new instance of the PaletteHeaderGroup class.
public PaletteHeaderGroup ( PaletteHeaderGroupRedirect inheritHeaderGroup, PaletteHeaderPaddingRedirect inheritHeaderPrimary, PaletteHeaderPaddingRedirect inheritHeaderSecondary, NeedPaintHandler needPaint ) : System
inheritHeaderGroup PaletteHeaderGroupRedirect Source for inheriting palette defaulted values.
inheritHeaderPrimary PaletteHeaderPaddingRedirect Source for inheriting primary header defaulted values.
inheritHeaderSecondary PaletteHeaderPaddingRedirect Source for inheriting secondary header defaulted values.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System

SetInherit() public method

Sets the inheritence parent.
public SetInherit ( PaletteHeaderGroup inheritHeaderGroup ) : void
inheritHeaderGroup PaletteHeaderGroup Source for inheriting.
return void