[]
        
(Showing Draft Content)

C1.Win.C1FlexGrid.GridRendererOffice2007

GridRendererOffice2007 Class

Represents the base abstract class for Office2007 style renderers.

Implements
Namespace: C1.Win.C1FlexGrid
Assembly: C1.Win.C1FlexGrid.4.8.dll
Syntax
public class GridRendererOffice2007 : C1FlexGridRenderer, IDisposable
Remarks

The easiest way to create a new high-quality renderer is to derive from this class and provide a constructor that initializes the 25 colors that define the renderer.

Constructors

Name Description
GridRendererOffice2007(Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color)

Initializes a new instance of a GridRendererOffice2007.

GridRendererOffice2007(Color[])

Initializes a new instance of a GridRendererOffice2007 using a specified color palette.

Properties

Name Description
Highlight

Gets or sets the color used to paint the background of highlighted cells.

TracksMouse

Gets a value that determines whether this renderer renders hot cells differently than normal cells.

TracksSelection

Gets a value that determines whether this renderer tracks the selection to paint highlighted column and row headers.

Methods

Name Description
Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

~GridRendererOffice2007()

Finalizes an instance of the GridRendererOffice2007 class.

GetBackgroundBrush(C1FlexGridBase, CellType, Rectangle)

Gets the background brush for a cell.

GetBorderPen(CellType)

Gets a pen used to paint the cell borders.

OnDrawCell(C1FlexGridBase, OwnerDrawCellEventArgs, CellType)

Draws a single grid cell of a specific type.