C# Class ComponentFactory.Krypton.Toolkit.PaletteSeparatorPadding

Implement storage for palette border,background and separator padding.
Inheritance: PaletteDouble, IPaletteMetric
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Свойство Type Description

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.

PaletteSeparatorPadding ( IPaletteDouble inheritDouble, IPaletteMetric inheritMetric, NeedPaintHandler needPaint ) : System

Initialize a new instance of the PaletteSeparatorPadding class.

PopulateFromBase ( PaletteState state, PaletteMetricPadding metric ) : void

Populate values from the base palette.

ResetPadding ( ) : void

Reset the Padding to the default value.

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

PaletteSeparatorPadding() public méthode

Initialize a new instance of the PaletteSeparatorPadding class.
public PaletteSeparatorPadding ( IPaletteDouble inheritDouble, IPaletteMetric inheritMetric, NeedPaintHandler needPaint ) : System
inheritDouble IPaletteDouble Source for inheriting border and background values.
inheritMetric IPaletteMetric Source for inheriting metric values.
needPaint NeedPaintHandler Delegate for notifying paint requests.
Résultat System

PopulateFromBase() public méthode

Populate values from the base palette.
public PopulateFromBase ( PaletteState state, PaletteMetricPadding metric ) : void
state PaletteState Which state to populate from.
metric PaletteMetricPadding Which metric should be used for padding.
Résultat void

ResetPadding() public méthode

Reset the Padding to the default value.
public ResetPadding ( ) : void
Résultat void