| Spread.Sheets Documentation > Sample Code > Sample Code for Cells > Setting Alignment and Indentation |
You can set the alignment and indentation in a cell.

The following example sets the alignment and indents the text in the cell.
| JavaScript |
Copy Code
|
|---|---|
|
window.onload = function(){ // Set the horizontal and vertical alignment of string to “center” // Set the indent of strings. |
|