Get Started
Documentation
Macros
More information
|
window.Asc.plugin.info.height read-onlyDescription
Defines the height of the OLE object measured in millimeters. NB:If the pixel height size of the OLE object is needed for raster representation, it is necessary to use the window.Asc.plugin.info.mmToPx method to convert the values.
Returns
Type number Example
window.Asc.plugin.button = function (id) { var _info = window.Asc.plugin.info; var _method = (_info.objectId === undefined) ? "asc_addOleObject" : "asc_editOleObject"; _info.width = _info.width ? _info.width : 70; _info.height = _info.height ? _info.height : 70; _info.widthPix = (_info.mmToPx * _info.width) >> 0; _info.heightPix = (_info.mmToPx * _info.height) >> 0; _info.imgSrc = window.g_board.getResult(_info.widthPix, _info.heightPix).image; _info.data = window.g_board.getData(); var _code = "Api." + _method + "(" + JSON.stringify(_info) + ");"; this.executeCommand("close", _code); }; |
© Ascensio System SIA 2021. All rights reserved
|