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>

In this article