SetAlignVertical
function SetAlignVertical(sAligment: center | bottom | top | distributed | justify = null): boolean
Description
Sets the vertical alignment of the text in the current cell range.
Parameters
- sAligment
center | bottom | top | distributed | justify
null The vertical alignment that will be applied to the cell contents.
Returns
boolean
Try It
var oWorksheet = Api.GetActiveSheet();
var oRange = oWorksheet.GetRange("A1:D5");
oWorksheet.GetRange("A2").SetValue("This is just a sample text distributed in the A2 cell.");
oRange.SetAlignVertical("distributed");