C# Class ComponentFactory.Krypton.Toolkit.PaletteElementColor

Storage for element color values.
Inheritance: Storage, IPaletteElementColor
Datei anzeigen Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
GetElementColor1 ( PaletteState state ) : Color

Gets the first element color.

GetElementColor2 ( PaletteState state ) : Color

Gets the second element color.

GetElementColor3 ( PaletteState state ) : Color

Gets the third element color.

GetElementColor4 ( PaletteState state ) : Color

Gets the fourth element color.

GetElementColor5 ( PaletteState state ) : Color

Gets the fifth element color.

PaletteElementColor ( IPaletteElementColor inheritElementColor, NeedPaintHandler needPaint ) : System

Initialize a new instance of the PaletteElementColor class.

PopulateFromBase ( PaletteState state ) : void

Populate values from the base palette.

ResetColor1 ( ) : void

Reset the Color1 to the default value.

ResetColor2 ( ) : void

Reset the Color2 to the default value.

ResetColor3 ( ) : void

Reset the Color3 to the default value.

ResetColor4 ( ) : void

Reset the Color4 to the default value.

ResetColor5 ( ) : void

Reset the Color5 to the default value.

SetInherit ( IPaletteElementColor inheritElementColor ) : void

Sets the inheritence parent.

Method Details

GetElementColor1() public method

Gets the first element color.
public GetElementColor1 ( PaletteState state ) : Color
state PaletteState Palette value should be applicable to this state.
return Color

GetElementColor2() public method

Gets the second element color.
public GetElementColor2 ( PaletteState state ) : Color
state PaletteState Palette value should be applicable to this state.
return Color

GetElementColor3() public method

Gets the third element color.
public GetElementColor3 ( PaletteState state ) : Color
state PaletteState Palette value should be applicable to this state.
return Color

GetElementColor4() public method

Gets the fourth element color.
public GetElementColor4 ( PaletteState state ) : Color
state PaletteState Palette value should be applicable to this state.
return Color

GetElementColor5() public method

Gets the fifth element color.
public GetElementColor5 ( PaletteState state ) : Color
state PaletteState Palette value should be applicable to this state.
return Color

PaletteElementColor() public method

Initialize a new instance of the PaletteElementColor class.
public PaletteElementColor ( IPaletteElementColor inheritElementColor, NeedPaintHandler needPaint ) : System
inheritElementColor IPaletteElementColor Source for inheriting values.
needPaint NeedPaintHandler Delegate for notifying changes in value.
return System

PopulateFromBase() public method

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

ResetColor1() public method

Reset the Color1 to the default value.
public ResetColor1 ( ) : void
return void

ResetColor2() public method

Reset the Color2 to the default value.
public ResetColor2 ( ) : void
return void

ResetColor3() public method

Reset the Color3 to the default value.
public ResetColor3 ( ) : void
return void

ResetColor4() public method

Reset the Color4 to the default value.
public ResetColor4 ( ) : void
return void

ResetColor5() public method

Reset the Color5 to the default value.
public ResetColor5 ( ) : void
return void

SetInherit() public method

Sets the inheritence parent.
public SetInherit ( IPaletteElementColor inheritElementColor ) : void
inheritElementColor IPaletteElementColor
return void