> ## 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.

# Sections

## `Section`

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

### Section properties

| Name | Type | Description |
| - | - | - |
| `borders` | `PageBorderCollection` | read-only The section's page border (w:pgBorders): Word.BorderUniversalCollection. |
| `pageSetup` | `SectionPageSetup` | read-only Core page size, orientation, and margins for this section. |
| `protectedForForms` | `boolean` | |

### `getFooter()`

```ts theme={null}
getFooter(type: HeaderFooterType): HeaderFooter
```

This section's footer of the given type, with the same inheritance rule as getHeader.

### `getHeader()`

```ts theme={null}
getHeader(type: HeaderFooterType): HeaderFooter
```

This section's header of the given type. A section with no reference of
that type inherits the nearest previous section's part (Word's "Link to
Previous"), so the read never touches the package; only when no section up
the chain has one is an empty part created.

### `getNext()`

```ts theme={null}
getNext(): Section
```

### `getNextOrNullObject()`

```ts theme={null}
getNextOrNullObject(): Section & { isNullObject: true } | Section & { isNullObject: false }
```

### `set()`

```ts theme={null}
set(properties: SectionUpdateData, options?: UpdateOptions): void
```

**Not implemented.** These Office.js members throw: `body`.
