C# Class ComponentFactory.Krypton.Toolkit.PaletteDataGridViewContentCommon

Implement storage for data grid view palette content details.
Inheritance: PaletteDataGridViewContentStates
Datei anzeigen Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
GetContentPadding ( PaletteState state ) : Padding

Gets the actual padding between the border and content drawing.

GetContentShortTextFont ( PaletteState state ) : Font

Gets the actual content short text font value.

GetContentShortTextH ( PaletteState state ) : PaletteRelativeAlign

Gets the actual content short text horizontal alignment value.

GetContentShortTextV ( PaletteState state ) : PaletteRelativeAlign

Gets the actual content short text vertical alignment value.

PaletteDataGridViewContentCommon ( IPaletteContent inherit, NeedPaintHandler needPaint ) : System

Initialize a new instance of the PaletteDataGridViewContentCommon class.

PopulateFromBase ( PaletteState state ) : void

Populate values from the base palette.

ResetPadding ( ) : void

Reset the Padding to the default value.

Method Details

GetContentPadding() public method

Gets the actual padding between the border and content drawing.
public GetContentPadding ( PaletteState state ) : Padding
state PaletteState Palette value should be applicable to this state.
return Padding

GetContentShortTextFont() public method

Gets the actual content short text font value.
public GetContentShortTextFont ( PaletteState state ) : Font
state PaletteState Palette value should be applicable to this state.
return System.Drawing.Font

GetContentShortTextH() public method

Gets the actual content short text horizontal alignment value.
public GetContentShortTextH ( PaletteState state ) : PaletteRelativeAlign
state PaletteState Palette value should be applicable to this state.
return PaletteRelativeAlign

GetContentShortTextV() public method

Gets the actual content short text vertical alignment value.
public GetContentShortTextV ( PaletteState state ) : PaletteRelativeAlign
state PaletteState Palette value should be applicable to this state.
return PaletteRelativeAlign

PaletteDataGridViewContentCommon() public method

Initialize a new instance of the PaletteDataGridViewContentCommon class.
public PaletteDataGridViewContentCommon ( IPaletteContent inherit, NeedPaintHandler needPaint ) : System
inherit IPaletteContent Source for inheriting defaulted 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

ResetPadding() public method

Reset the Padding to the default value.
public ResetPadding ( ) : void
return void