# 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()](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-spreadsheet/reference/built-in-functions/spreadsheetaddfreezepane) - Freeze panes
* [SpreadsheetSetActiveCell()](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-spreadsheet/reference/built-in-functions/spreadsheetsetactivecell) - Set active cell
