Commit fb6ad098 authored by Alexander.Trofimov's avatar Alexander.Trofimov

api builder: add types for setUnderline method

parent d84aa27e
......@@ -634,10 +634,29 @@
/**
* Set underline
* @memberof ApiRange
* @param {bool} value
* @param {'none' | 'single' | 'singleAccounting' | 'double' | 'doubleAccounting'} value
*/
ApiRange.prototype.SetUnderline = function (value) {
this.range.setUnderline(!!value);
var val;
switch (value) {
case 'single':
val = Asc.EUnderline.underlineSingle;
break;
case 'singleAccounting':
val = Asc.EUnderline.underlineSingleAccounting;
break;
case 'double':
val = Asc.EUnderline.underlineDouble;
break;
case 'doubleAccounting':
val = Asc.EUnderline.underlineDoubleAccounting;
break;
case 'none':
default:
val = Asc.EUnderline.underlineNone;
break;
}
this.range.setUnderline(val);
};
/**
......
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