Spread.Sheets Documentation > Developer's Guide > Customizing the Appearance > Setting Cell Alignment and Indentation |
You can align or indent text in a cell. You can specify the vertical and horizontal alignment using the hAlign and vAlign methods. Specify the indent using the textIndent method.
This example sets the vertical and horizontal alignment for cell B2 and specifies a text indent for cell B3.
JavaScript |
Copy Code
|
---|---|
// Set the horizontal and vertical alignment to center // Indent the string. |