C# Class ComponentFactory.Krypton.Toolkit.PaletteDataGridViewRedirect

Implement storage and redirection for a KryptonDataGridView state.
Inheritance: Storage
Exibir arquivo Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
ShouldSerializeBackground bool
ShouldSerializeDataCell bool
ShouldSerializeHeaderColumn bool
ShouldSerializeHeaderRow bool

Public Methods

Method Description
PaletteDataGridViewRedirect ( PaletteRedirect redirect, NeedPaintHandler needPaint ) : System

Initialize a new instance of the PaletteDataGridViewRedirect class.

SetGridStyles ( GridStyle headerColumn, GridStyle headerRow, GridStyle dataCell ) : void

Update the styles of the headers and data cells.

SetRedirector ( PaletteRedirect redirect ) : void

Update the redirector with new reference.

Protected Methods

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

Handle a change event from palette source.

Private Methods

Method Description
ShouldSerializeBackground ( ) : bool
ShouldSerializeDataCell ( ) : bool
ShouldSerializeHeaderColumn ( ) : bool
ShouldSerializeHeaderRow ( ) : 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

PaletteDataGridViewRedirect() public method

Initialize a new instance of the PaletteDataGridViewRedirect class.
public PaletteDataGridViewRedirect ( PaletteRedirect redirect, NeedPaintHandler needPaint ) : System
redirect PaletteRedirect Source for inheriting values.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System

SetGridStyles() public method

Update the styles of the headers and data cells.
public SetGridStyles ( GridStyle headerColumn, GridStyle headerRow, GridStyle dataCell ) : void
headerColumn GridStyle Style for the column headers.
headerRow GridStyle Style for the row headers.
dataCell GridStyle Style for the data cells.
return void

SetRedirector() public method

Update the redirector with new reference.
public SetRedirector ( PaletteRedirect redirect ) : void
redirect PaletteRedirect Target redirector.
return void