C# Class ComponentFactory.Krypton.Toolkit.PaletteDataGridViewTripleCommon

Implement storage for palette border, background and content for the data grid view common state.
Inheritance: Storage, IPaletteTriple
Show file Open project: ComponentFactory/Krypton

Private Properties

Property Type Description
ShouldSerializeBack bool
ShouldSerializeBorder bool
ShouldSerializeContent bool

Public Methods

Method Description
PaletteDataGridViewTripleCommon ( IPaletteTriple inherit, NeedPaintHandler needPaint ) : System

Initialize a new instance of the PaletteDataGridViewTripleCommon class.

PopulateFromBase ( PaletteState state ) : void

Populate values from the base palette.

SetInherit ( IPaletteTriple inherit ) : void

Sets the inheritence parent.

Protected Methods

Method Description
OnNeedPaint ( object sender, bool needLayout ) : void

Handle a change event from palette source.

Private Methods

Method Description
ShouldSerializeBack ( ) : bool
ShouldSerializeBorder ( ) : bool
ShouldSerializeContent ( ) : bool

Method Details

OnNeedPaint() protected method

Handle a change event from palette source.
protected OnNeedPaint ( object sender, bool needLayout ) : void
sender object Source of the event.
needLayout bool True if a layout is also needed.
return void

PaletteDataGridViewTripleCommon() public method

Initialize a new instance of the PaletteDataGridViewTripleCommon class.
public PaletteDataGridViewTripleCommon ( IPaletteTriple inherit, NeedPaintHandler needPaint ) : System
inherit IPaletteTriple Source for inheriting values.
needPaint NeedPaintHandler Delegate for notifying paint requests.
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

SetInherit() public method

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