Scales the height of the figure using the specified coefficient.
Name | Type | Description |
coefficient | number | The coefficient by which the figure height will be scaled. |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph = oDocument.GetElement(0); for (let i = 3; i > 0; i-- ){ var oFill = Api.CreateSolidFill(Api.CreateRGBColor(255, 111, 61)); var oStroke = Api.CreateStroke(0, Api.CreateNoFill()); var oDrawing = Api.CreateShape("cube", 3212465, 963295, oFill, oStroke); oParagraph.AddDrawing(oDrawing); oDrawing.ScaleHeight( i ); } builder.SaveFile("docx", "ScaleHeight.docx"); builder.CloseFile();