-
Notifications
You must be signed in to change notification settings - Fork 610
excel colbreak
goworm edited this page Jun 26, 2026
·
1 revision
Manual page break inserted before the specified column. Accepts a numeric index or a column letter.
Path: /{SheetName}/colbreak[N]
- add - Insert a manual column page break
- set - Adjust an existing break
- get, query, remove - Standard operations
Parent: sheet
| Property | Required | Description |
|---|---|---|
col (aliases: column, index) |
yes | Column index or letter the break is inserted before (e.g., F) |
| Property | Required/Default | Description |
|---|---|---|
col (aliases: column, index) |
Column index or letter the break is inserted before | |
manual |
true ⇒ user-inserted (manual) break; false ⇒ automatic |
|
min |
Zero-based start row the break spans (OOXML brk@min) |
|
max |
Zero-based end row the break spans (OOXML brk@max) |
# Insert a manual column break before column F
officecli add data.xlsx /Sheet1 --type colbreak --prop col=F
# Insert a break using a numeric column index
officecli add data.xlsx /Sheet1 --type colbreak --prop col=6
# Change the column a break is anchored to
officecli set data.xlsx /Sheet1/colbreak[1] --prop col=D
# Mark a break as manual and set the row span it covers
officecli set data.xlsx /Sheet1/colbreak[1] --prop manual=true --prop min=0 --prop max=20
# Query all column breaks
officecli query data.xlsx colbreak
# Remove a column break
officecli remove data.xlsx /Sheet1/colbreak[1]- The break is placed before the named column, so
col=Fstarts a new printed page at column F. -
colaccepts either a column letter (F) or a numeric index (6). -
minandmaxare zero-based row indices that define the vertical extent the break spans, mapping directly to the OOXMLbrk@minandbrk@maxattributes. -
manual=truemarks the break as user-inserted;manual=falsemarks it automatic.
- Sheet - Worksheet print and page-setup options
- Excel Reference - All Excel elements
Based on OfficeCLI v1.0.119