# CellRenderingOptions class
{: .no_toc }

A bundle of the style objects that describe one *category* of cell in a [**WaynesGrid**](/tB/Packages/CustomControls/WaynesGrid/index.md). Each grid has six parallel instances --- one for column headers, one for row headers, one for normal cells, one for the hovered cell, one for the selected cell, and one for cells inside a full-row or full-column multi-selection --- and the grid picks the appropriate instance per cell at paint time.

```tb check_build
With Grid1.SelectedCellOptions
    .Fill.ColorPoints.SetSolidColor &HFFEEAA   ' pale blue
    .Borders.SetSimpleBorder StrokeSize:=2, ColorRGB:=vbBlue
End With
```

## Properties

### Borders
{: .no_toc }

The [**Borders**](/tB/Packages/CustomControls/Styles/Borders.md) drawn around the cell.

### Corners
{: .no_toc }

The [**Corners**](/tB/Packages/CustomControls/Styles/Corners.md) that controls the per-corner shape and radius of the cell. Most cells use the default sharp 90° corners; rounded corners only really make sense on a single highlighted cell rather than on every cell in a column.

### Cursor
{: .no_toc }

The mouse cursor shown when the pointer is over this category of cell. A member of [**MousePointerConstants**](/tB/Packages/VBRUN/Constants/MousePointerConstants.md). Defaults to **vbDefault**; the grid sets **vbHand** on the column-header and row-header instances internally to indicate that those rows / columns are clickable for multi-selection.

### Fill
{: .no_toc }

The [**Fill**](/tB/Packages/CustomControls/Styles/Fill.md) that paints the cell background. Newly-constructed **CellRenderingOptions** instances default to a solid mid-grey background ([**WAYNESCOLOR_GREY**](#) --- `&H808080`).

### TextRendering
{: .no_toc }

The [**TextRendering**](/tB/Packages/CustomControls/Styles/TextRendering.md) that controls how the cell's text (supplied by the [**GetCellText**](/tB/Packages/CustomControls/WaynesGrid/index.md#getcelltext) event) is drawn.

## Methods

### New
{: .no_toc }

Constructs a [**CellRenderingOptions**](#) with the default mid-grey fill.

Syntax: **New CellRenderingOptions**

## Events

### OnChanged
{: .no_toc }

Raised whenever any of the contained style objects raises its own **OnChanged**, or when [**Cursor**](#cursor) is assigned. The parent [**WaynesGrid**](/tB/Packages/CustomControls/WaynesGrid/index.md) listens for this and requests a repaint.
