# CellStyle.fillPattern Property

> CellStyle.fillPattern property in the TX Sheet Control TypeScript API for Node.js, with its type CellStyle['fillPattern'] and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > CellStyle > CellStyle.fillPattern Property
- **404 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/cellstyle/fillpattern-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/cellstyle/fillpattern-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/cellstyle/fillpattern-property/llms-full.txt

---

Hatch foreground over the cell background. Set null to remove the pattern. The same clipped vector geometry is used by the editor and PDF.

Owner: [CellStyle](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/cellstyle/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

### Syntax

```typescript
fillPattern?: CellStyle['fillPattern']
```

### Pattern Settings

`type` accepts `darkDown`, `darkUp`, `darkHorizontal`, `darkVertical`, `darkGrid`, `darkTrellis`, their `light` variants, `darkGray`, `mediumGray`, `lightGray`, `gray125` and `gray0625`. `color` is a six-digit RGB foreground. `fillColor` supplies the background. Invalid types and colors throw before the edit commits. Patterns are retained in XLSX, TXWB and ODS.

### Examples

```typescript
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

function configureReport(control: ServerSheetControl) {
    const book = control.workbook;
    const sheet = book.sheets.at(0);
    sheet.cell('B3').setText('Planned activity');
    sheet.cell('B3').format({ fillColor: '#ffffff', fillPattern: { type: 'lightUp', color: '#735773' } });
    return sheet;
}
```

---

## Nearby

- **Previous:** [CellStyle.wrapText Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/cellstyle/wraptext-property/llms-full.txt)
- **Next:** [CellTextRun Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/celltextrun/llms-full.txt)
