> ## 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: Content controls

## `CheckboxContentControlUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type CheckboxContentControlUpdateData = WritableProperties<CheckboxContentControl>
```

## `ContentControlAppearance`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type ContentControlAppearance = typeof ContentControlAppearance[keyof typeof ContentControlAppearance]
```

## `ContentControlListItemUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type ContentControlListItemUpdateData = WritableProperties<ContentControlListItem>
```

## `ContentControlOptions`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

| Name | Type | Description |
| - | - | - |
| `types` | `ContentControlType[]` | |

## `ContentControlType`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type ContentControlType = typeof ContentControlType[keyof typeof ContentControlType]
```

## `ContentControlUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type ContentControlUpdateData = WritableProperties<ContentControl> & { checkboxContentControl?: CheckboxContentControlUpdateData; font?: FontSetFormat }
```

## `CustomXmlEntry`

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

| Name | Type | Description |
| - | - | - |
| `id` | `string` | |
| `part` | `OpenXmlPart` | |
| `props` | `OpenXmlPart \| undefined` | |
| `relId` | `string` | |
| `xDoc` | `XDocument` | |

## `DatePickerContentControlUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type DatePickerContentControlUpdateData = WritableProperties<DatePickerContentControl>
```

## `LegacyTextInput`

`w:ffData/w:textInput` of a FORMTEXT field.

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

| Name | Type | Description |
| - | - | - |
| `default?` | `string` | `w:default`: the text Word fills in when the form is reset. |
| `format?` | `string` | `w:format`: a number or date picture, or a text case such as UPPERCASE. |
| `maxLength?` | `number` | `w:maxLength`: the most characters the field accepts; absent = unlimited. |
| `type` | `LegacyTextInputType` | |

## `LegacyTextInputType`

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

```ts theme={null}
type LegacyTextInputType = "regular" | "number" | "date" | "currentTime" | "currentDate" | "calculated"
```

## `TextControl`

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

| Name | Type | Description |
| - | - | - |
| `insertText()` | `(text: string, location?: "Replace" \| "Start" \| "End") => unknown` | |
