Learn how to change horizontal and vertical text alignment in the spreadsheet using toolbar buttons or the Format Cells dialog, and see how to do it programmatically with the JavaScript API....The dropdown shows the chosen value. Step 5: Set vertical alignment...alignment 'center' // possible values: 'left', 'center', 'right'...