> ## 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: Shapes and pictures

## `ArrowheadLength`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ArrowheadLength = "Short" | "Medium" | "Long"
```

## `ArrowheadStyle`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ArrowheadStyle = "None" | "Triangle" | "Stealth" | "Diamond" | "Oval" | "Open"
```

## `ArrowheadWidth`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ArrowheadWidth = "Narrow" | "Medium" | "Wide"
```

## `Base64EncodedImage`

`Excel.Base64EncodedImage`. A picture in a cell is a PNG, JPEG or GIF; the bytes tell which, as in Excel.

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

| Name | Type | Description |
| - | - | - |
| `data` | `string` | |
| `type` | `"BMP" \| "GIF" \| "ICO" \| "JPG" \| "PNG" \| "TIF" \| "WEBP"` | |

## `ConnectorType`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ConnectorType = "Straight" | "Elbow" | "Curve"
```

## `GetImageOptions`

Extension: Office.js `getImage` takes no options.

Import from `@reductoai/xlsx/officejs`.

| Name | Type | Description |
| - | - | - |
| `gridlines?` | `boolean` | Paint gridlines. `Range.getImage` defaults to the sheet's own setting, as Office.js does. |
| `labels?` | `boolean` | Column letters and row numbers around the cells, so a reader can name the cell under a mark. Default false. |
| `scale?` | `number` | Image pixels per sheet pixel; 2 for a sharp image. Default 1. |

## `LocalImageCacheId`

`Excel.LocalImageCellValueCacheId`: an image a cell of the workbook holds.

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

| Name | Type | Description |
| - | - | - |
| `cachedUid` | `string` | |

## `LocalImageCellValue`

`Excel.LocalImageCellValue` as Excel reads one: a picture in a cell, its image by cache id.

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

| Name | Type | Description |
| - | - | - |
| `altText?` | `string` | |
| `basicType` | `"Error"` | |
| `basicValue` | `"#VALUE!"` | |
| `image` | `LocalImageCacheId` | |
| `type` | `"LocalImage"` | |

## `PictureColorType`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type PictureColorType = "Mixed" | "Automatic" | "GrayScale" | "BlackAndWhite" | "Watermark"
```

## `PictureFormat`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type PictureFormat = "UNKNOWN" | "BMP" | "JPEG" | "GIF" | "PNG" | "SVG"
```

## `ShapeAutoSize`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeAutoSize = "AutoSizeNone" | "AutoSizeTextToFitShape" | "AutoSizeShapeToFitText" | "AutoSizeMixed"
```

## `ShapeFillType`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeFillType = "NoFill" | "Solid" | "Gradient" | "Pattern" | "PictureAndTexture" | "Mixed"
```

## `ShapeFontUnderlineStyle`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeFontUnderlineStyle = "None" | "Single" | "Double" | "Heavy" | "Dotted" | "DottedHeavy" | "Dash" | "DashHeavy" | "DashLong" | "DashLongHeavy" | "DotDash" | "DotDashHeavy" | "DotDotDash" | "DotDotDashHeavy" | "Wavy" | "WavyHeavy" | "WavyDouble"
```

## `ShapeHost`

The object a format handle reads and writes; `edit` saves the part.

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

| Name | Type | Description |
| - | - | - |
| `edit()` | `<T>(fn: (body: XElement) => T) => T` | |
| `read()` | `<T>(fn: (body: XElement) => T) => T` | |
| `theme()` | `() => ShapeTheme` | |

## `ShapeLineDashStyle`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeLineDashStyle = "Dash" | "DashDot" | "DashDotDot" | "LongDash" | "LongDashDot" | "RoundDot" | "Solid" | "SquareDot" | "LongDashDotDot" | "SystemDash" | "SystemDot" | "SystemDashDot"
```

## `ShapeLineStyle`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeLineStyle = "Single" | "ThickBetweenThin" | "ThickThin" | "ThinThick" | "ThinThin"
```

## `ShapeScaleFrom`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeScaleFrom = "ScaleFromTopLeft" | "ScaleFromMiddle" | "ScaleFromBottomRight"
```

## `ShapeScaleType`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeScaleType = "CurrentSize" | "OriginalSize"
```

## `ShapeTextHorizontalAlignment`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeTextHorizontalAlignment = "Left" | "Center" | "Right" | "Justify" | "JustifyLow" | "Distributed" | "ThaiDistributed"
```

## `ShapeTextHorizontalOverflow`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeTextHorizontalOverflow = "Overflow" | "Clip"
```

## `ShapeTextOrientation`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeTextOrientation = "Horizontal" | "Vertical" | "Vertical270" | "WordArtVertical" | "EastAsianVertical" | "MongolianVertical" | "WordArtVerticalRTL"
```

## `ShapeTextReadingOrder`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeTextReadingOrder = "LeftToRight" | "RightToLeft"
```

## `ShapeTextVerticalAlignment`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeTextVerticalAlignment = "Top" | "Middle" | "Bottom" | "Justified" | "Distributed"
```

## `ShapeTextVerticalOverflow`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeTextVerticalOverflow = "Overflow" | "Ellipsis" | "Clip"
```

## `ShapeTheme`

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

```ts theme={null}
type ShapeTheme = ThemePalette & { minorFont: string }
```

## `ShapeType`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeType = "Unsupported" | "Image" | "GeometricShape" | "Group" | "Line"
```

## `ShapeZOrder`

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type ShapeZOrder = "BringToFront" | "BringForward" | "SendToBack" | "SendBackward"
```

## `WebImageCellValue`

`Excel.WebImageCellValue`: an `IMAGE` result, by the address it came from.

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

| Name | Type | Description |
| - | - | - |
| `address` | `string` | |
| `altText?` | `string` | |
| `basicType` | `"Error"` | |
| `basicValue` | `"#VALUE!"` | |
| `type` | `"WebImage"` | |
