Skip to content

cupertino-files / CellFormatting

Interface: CellFormatting ​

Defined in: src/tst/styles.ts:99

Properties ​

borders? ​

optional borders?: object

Defined in: src/tst/styles.ts:103

Per-side borders. A side set to null removes that border.

bottom? ​

optional bottom?: Stroke | null

left? ​

optional left?: Stroke | null

optional right?: Stroke | null

top? ​

optional top?: Stroke | null


fill? ​

optional fill?: Fill

Defined in: src/tst/styles.ts:101

Background: a colour, gradient or image.


horizontalAlignment? ​

optional horizontalAlignment?: number | TextAlignmentName | null

Defined in: src/tst/styles.ts:113

Horizontal alignment of the cell's text — a TextAlignment value or its name. Rides the text layer: the cell gets an anonymous paragraph style carrying the alignment, which is where the corpus keeps it. null drops the cell's own text style so the band default applies.


padding? ​

optional padding?: Padding

Defined in: src/tst/styles.ts:104


textWrap? ​

optional textWrap?: boolean

Defined in: src/tst/styles.ts:115

Wrap text within the cell rather than clipping it.


verticalAlignment? ​

optional verticalAlignment?: number

Defined in: src/tst/styles.ts:106

0 top, 1 middle, 2 bottom — see VerticalAlignment.

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.