public invertRange(row as Int, startCol as Int, endCol as Int) as Void
Inverts the visual style of a horizontal cell range [startCol, endCol) on a row.
Out-of-bounds columns or rows are safely clipped to the frame dimensions.
| Parameter | Description |
|---|---|
row | 0-based row index. |
startCol | 0-based inclusive start column index. |
endCol | 0-based exclusive end column index. |
frame = TerminalFrame(20, 4) frame.writeStyledText(0, 0, "Hello") frame.invertRange(0, 1, 4)