Skip to content

Commit

Permalink
[de][bu] Move ApiShape.GetContent method to base class ApiDrawing
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillovIlya committed Jan 17, 2025
1 parent da06958 commit c83b9aa
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions word/apiBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c83b9aa

Please sign in to comment.