> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Types: OfficeJS: Formatting and styles

## `BorderIndex`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type BorderIndex = "EdgeTop" | "EdgeBottom" | "EdgeLeft" | "EdgeRight" | "InsideVertical" | "InsideHorizontal"
```

## `BorderPreset`

The Borders menu Excel, Word and PowerPoint share: each entry names edges of the selected block.

Import from `@reductoai/xlsx/editor`.

```ts theme={null}
type BorderPreset = "bottom" | "top" | "left" | "right" | "none" | "all" | "outside" | "inside" | "insideH" | "insideV" | "thickOutside" | "bottomDouble" | "thickBottom" | "topBottom" | "topThickBottom" | "topDoubleBottom"
```

## `DxfSlot`

Reads and replaces the differential format of one rule.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `book` | `Book` | |
| `get()` | `() => DxfProps` | |
| `set()` | `(next: DxfProps) => void` | |

## `FillPattern`

Not exported by name. You get it from the API.

```ts theme={null}
type FillPattern = "None" | "Solid" | "Gray50" | "Gray75" | "Gray25" | "Horizontal" | "Vertical" | "Down" | "Up" | "Checker" | "SemiGray75" | "LightHorizontal" | "LightVertical" | "LightDown" | "LightUp" | "Grid" | "CrissCross" | "Gray16" | "Gray8" | "LinearGradient" | "RectangularGradient"
```

## `NumberFormatCategory`

`Excel.NumberFormatCategory`: the Format Cells category a format code falls in.

Not exported by name. You get it from the API.

```ts theme={null}
type NumberFormatCategory = "General" | "Number" | "Currency" | "Accounting" | "Date" | "Time" | "Percentage" | "Fraction" | "Scientific" | "Text" | "Special" | "Custom"
```

## `StyleOf`

Not exported by name. You get it from the API.

```ts theme={null}
type StyleOf<K extends NamedStyleKind> = K extends "table" ? TableStyle : K extends "pivot" ? PivotTableStyle : K extends "slicer" ? SlicerStyle : TimelineStyle
```
