Edit this page

verticalAlign

Gets or sets the vertical alignment of the cells in the range.

Parameters

value String optional

One of the following values: "top", "center" and "bottom".

Returns

String the current text alignment of the top-left cell of the range.

Example

    <div id="spreadsheet"></div>
    <script type="text/javascript" charset="utf-8">
        $("#spreadsheet").kendoSpreadsheet();
        var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
        var sheet = spreadsheet.activeSheet();
        sheet.rowHeight(0, 40);
        sheet.rowHeight(1, 40);
        sheet.rowHeight(2, 40);
        sheet.range("A1").value("top");
        sheet.range("A1").verticalAlign("top");
        sheet.range("A2").value("center");
        sheet.range("A2").verticalAlign("center");
        sheet.range("A3").value("bottom");
        sheet.range("A3").verticalAlign("bottom");
    </script>

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy