# SpreadsheetAddSplitPane

Adds a split pane to a spreadsheet.

## Method Signature

```
SpreadsheetAddSplitPane(spreadsheetObj=[any], xSplitPos=[any], ySplitPos=[any], leftmostColumn=[any], topRow=[any], activePane=[any])
```

### Arguments

| Argument         | Type      | Required | Description                                                        | Default |
| ---------------- | --------- | -------- | ------------------------------------------------------------------ | ------- |
| `spreadsheetObj` | `ANY`     | `true`   | The spreadsheet object.                                            |         |
| `xSplitPos`      | `NUMERIC` | `true`   | The horizontal position of the split in pixels.                    |         |
| `ySplitPos`      | `NUMERIC` | `true`   | The vertical position of the split in pixels.                      |         |
| `leftmostColumn` | `NUMERIC` | `false`  | The leftmost column visible in right pane (0-based). Default is 0. |         |
| `topRow`         | `NUMERIC` | `false`  | The top row visible in bottom pane (0-based). Default is 0.        |         |
| `activePane`     | `NUMERIC` | `false`  | The active pane. Default is 0.                                     |         |

## Examples

Add split pane to spreadsheet:

```js
// Split view into panes
var spreadsheet = SpreadsheetNew();
SpreadsheetAddSplitPane( spreadsheet, 3, 2 );
```

## Related

* [SpreadsheetAddFreezePane()](/boxlang-+-++/modules/bx-spreadsheet/built-in-functions/spreadsheetaddfreezepane.md) - Freeze panes
* [SpreadsheetSetActiveCell()](/boxlang-+-++/modules/bx-spreadsheet/built-in-functions/spreadsheetsetactivecell.md) - Set active cell


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://boxlang.ortusbooks.com/boxlang-+-++/modules/bx-spreadsheet/built-in-functions/spreadsheetaddsplitpane.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
