# Javascript: TableOfContents.getMinimumStructureLevel Method

> Gets the minimum structure level for this table of contents. The table of contents contains all paragraphs with a structure level less than or equal this value. It must be between 1 and 10.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 29.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TableOfContents.getMinimumStructureLevel Method
- **387 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontents/getminimumstructurelevel-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontents/getminimumstructurelevel-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontents/getminimumstructurelevel-method/llms-full.txt

---

### Description

Gets the minimum structure level for this table of contents. The table of contents contains all paragraphs with a structure level less than or equal this value. It must be between 1 and 10.

### Syntax

```javascript
<void> TableOfContents.getMinimumStructureLevel(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the property value. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TableOfContents.getMinimumStructureLevel` in a practical document-editing workflow. It gets the minimum structure level for this table of contents. The table of contents contains all paragraphs with a structure level less than or equal this value. It must be between 1 and 10.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function inspectMinimumStructureLevel(tableOfContents) {
    tableOfContents.getMinimumStructureLevel(
        function(result) {
            console.log("get minimum structure level result:", result);
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TableOfContents.getMaximumStructureLevel Method](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontents/getmaximumstructurelevel-method/llms-full.txt)
- **Next:** [Javascript: TableOfContents.getName Method](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontents/getname-method/llms-full.txt)
