diff --git a/word/apiBuilder.js b/word/apiBuilder.js index 85295d0e5f..0e9c7ea7ec 100644 --- a/word/apiBuilder.js +++ b/word/apiBuilder.js @@ -15526,6 +15526,19 @@ { return "drawing"; }; + /** + * Returns the shape inner contents where a paragraph or text runs can be inserted if it exists. + * @memberof ApiShape + * @typeofeditors ["CDE", "CSE"] + * @returns {?ApiDocumentContent} + * @see office-js-api/Examples/{Editor}/ApiDrawing/Methods/GetContent.js + */ + ApiDrawing.prototype.GetContent = function() + { + if (this.Drawing && this.Drawing.textBoxContent && !this.Drawing.isForm()) + return new ApiDocumentContent(this.Drawing.textBoxContent); + return null; + }; /** * Sets the size of the object (image, shape, chart) bounding box. * @memberof ApiDrawing @@ -16353,21 +16366,6 @@ } return null; }; - /** - * Returns the shape inner contents where a paragraph or text runs can be inserted. - * @memberof ApiShape - * @typeofeditors ["CDE", "CSE"] - * @returns {?ApiDocumentContent} - * @see office-js-api/Examples/{Editor}/ApiShape/Methods/GetContent.js - */ - ApiShape.prototype.GetContent = function() - { - if(this.Shape && this.Shape.textBoxContent && !this.Shape.isForm()) - { - return new ApiDocumentContent(this.Shape.textBoxContent); - } - return null; - }; /** * Sets the vertical alignment to the shape content where a paragraph or text runs can be inserted. @@ -22579,6 +22577,7 @@ ApiTableStylePr.prototype["ToJSON"] = ApiTableStylePr.prototype.ToJSON; ApiDrawing.prototype["GetClassType"] = ApiDrawing.prototype.GetClassType; + ApiDrawing.prototype["GetContent"] = ApiDrawing.prototype.GetContent; ApiDrawing.prototype["SetSize"] = ApiDrawing.prototype.SetSize; ApiDrawing.prototype["SetWrappingStyle"] = ApiDrawing.prototype.SetWrappingStyle; ApiDrawing.prototype["SetHorAlign"] = ApiDrawing.prototype.SetHorAlign; @@ -22618,7 +22617,6 @@ ApiShape.prototype["GetClassType"] = ApiShape.prototype.GetClassType; ApiShape.prototype["GetDocContent"] = ApiShape.prototype.GetDocContent; - ApiShape.prototype["GetContent"] = ApiShape.prototype.GetContent; ApiShape.prototype["SetVerticalTextAlign"] = ApiShape.prototype.SetVerticalTextAlign; ApiShape.prototype["SetPaddings"] = ApiShape.prototype.SetPaddings; ApiShape.prototype["GetNextShape"] = ApiShape.prototype.GetNextShape;