# Javascript: SectionFormat.getLandscape Method

> Gets a value indicating whether the section's page size is in landscape orientation.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 26.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: SectionFormat.getLandscape Method
- **350 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/getlandscape-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/getlandscape-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/getlandscape-method/llms-full.txt

---

### Description

Gets a value indicating whether the section's page size is in landscape orientation.

### Syntax

```javascript
<void> SectionFormat.getLandscape(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives a value indicating whether the section's page size is in landscape orientation. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `SectionFormat.getLandscape` in a practical document-editing workflow. It gets a value indicating whether the section's page size is in landscape orientation.

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

function inspectLandscape(sectionFormat) {
    sectionFormat.getLandscape(
        function(result) {
            console.log("get landscape result:", result);
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: SectionFormat.getEqualColumnWidth Method](https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/getequalcolumnwidth-method/llms-full.txt)
- **Next:** [Javascript: SectionFormat.getRestartPageNumbering Method](https://docs.textcontrol.com/ds-server/reference/javascript/sectionformat/getrestartpagenumbering-method/llms-full.txt)
