Commit 324a9797 authored by Alexander.Trofimov's avatar Alexander.Trofimov

add setAlignHorizontal, setAlignVertical to builder

parent 57b4d7d9
......@@ -91,12 +91,28 @@
/**
* Set font name
* @param {number} name
* @param {string} name
*/
ApiRange.prototype.setFontName = function(name) {
this.range.setFontname(name);
};
/**
* Set align vertical
* @param {'center' | 'bottom' | 'top'} value
*/
ApiRange.prototype.setAlignVertical = function(value) {
this.range.setAlignVertical(value);
};
/**
* Set align horizontal
* @param {'left' | 'right' | 'center' | 'justify'} value
*/
ApiRange.prototype.setAlignHorizontal = function(value) {
this.range.setAlignHorizontal(value);
};
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Export
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
......@@ -110,4 +126,6 @@
ApiRange.prototype["setFontColor"] = ApiRange.prototype.setFontColor;
ApiRange.prototype["setFontSize"] = ApiRange.prototype.setFontSize;
ApiRange.prototype["setFontName"] = ApiRange.prototype.setFontName;
ApiRange.prototype["setAlignVertical"] = ApiRange.prototype.setAlignVertical;
ApiRange.prototype["setAlignHorizontal"] = ApiRange.prototype.setAlignHorizontal;
}(window, null));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment