Skip to content

Commit

Permalink
[bu][de] Added new method
Browse files Browse the repository at this point in the history
  • Loading branch information
KhromovNikita committed Feb 5, 2025
1 parent a48acdc commit 75145f2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions word/apiBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -5774,6 +5774,19 @@

return this.Document.GetText(oInnerProps);
};

/**
* Returns the current paragraph where the cursor is located.
* @memberof ApiDocumentContent
* @typeofeditors ["CDE"]
* @return {ApiParagraph}
* @since 8.4.0
* @see office-js-api/Examples/{Editor}/ApiDocumentContent/Methods/GetCurrentParagraph.js
*/
ApiDocumentContent.prototype.GetCurrentParagraph = function()
{
return new ApiParagraph(this.Document.GetCurrentParagraph());
};
//------------------------------------------------------------------------------------------------------------------
//
// ApiDocument
Expand Down Expand Up @@ -22095,6 +22108,7 @@
ApiDocumentContent.prototype["GetAllParagraphs"] = ApiDocumentContent.prototype.GetAllParagraphs;
ApiDocumentContent.prototype["GetAllTables"] = ApiDocumentContent.prototype.GetAllTables;
ApiDocumentContent.prototype["GetText"] = ApiDocumentContent.prototype.GetText;
ApiDocumentContent.prototype["GetCurrentParagraph"] = ApiDocumentContent.prototype.GetCurrentParagraph;

ApiRange.prototype["GetClassType"] = ApiRange.prototype.GetClassType;
ApiRange.prototype["GetParagraph"] = ApiRange.prototype.GetParagraph;
Expand Down

0 comments on commit 75145f2

Please sign in to comment.