From f740c3ee317bde4506a2d39ca3cd83da10c9a0c3 Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Sat, 8 Feb 2025 16:52:08 +0300 Subject: [PATCH] [de][bu] Add methods to get content controls internal Id --- word/apiBuilder.js | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/word/apiBuilder.js b/word/apiBuilder.js index 6420262f0e..6e926d2002 100644 --- a/word/apiBuilder.js +++ b/word/apiBuilder.js @@ -17657,7 +17657,19 @@ { return "inlineLvlSdt"; }; - + + /** + * Returns an internal id of the current content control. + * @memberof ApiInlineLvlSdt + * @typeofeditors ["CDE"] + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiInlineLvlSdt/Methods/GetInternalId.js + */ + ApiInlineLvlSdt.prototype.GetInternalId = function() + { + return this.Sdt.GetId(); + }; + /** * Sets the lock to the current inline text content control: * "contentLocked" - content cannot be edited. @@ -18615,7 +18627,19 @@ { return "blockLvlSdt"; }; - + + /** + * Returns an internal id of the current content control. + * @memberof ApiBlockLvlSdt + * @typeofeditors ["CDE"] + * @returns {string} + * @see office-js-api/Examples/{Editor}/ApiBlockLvlSdt/Methods/GetInternalId.js + */ + ApiBlockLvlSdt.prototype.GetInternalId = function() + { + return this.Sdt.GetId(); + }; + /** * Sets the lock to the current block text content control: * "contentLocked" - content cannot be edited. @@ -22724,6 +22748,7 @@ ApiBullet.prototype["ToJSON"] = ApiBullet.prototype.ToJSON; ApiInlineLvlSdt.prototype["GetClassType"] = ApiInlineLvlSdt.prototype.GetClassType; + ApiInlineLvlSdt.prototype["GetInternalId"] = ApiInlineLvlSdt.prototype.GetInternalId; ApiInlineLvlSdt.prototype["SetLock"] = ApiInlineLvlSdt.prototype.SetLock; ApiInlineLvlSdt.prototype["GetLock"] = ApiInlineLvlSdt.prototype.GetLock; ApiInlineLvlSdt.prototype["SetTag"] = ApiInlineLvlSdt.prototype.SetTag; @@ -22779,6 +22804,7 @@ ApiContentControlListEntry.prototype["SetValue"] = ApiContentControlListEntry.prototype.SetValue; ApiBlockLvlSdt.prototype["GetClassType"] = ApiBlockLvlSdt.prototype.GetClassType; + ApiBlockLvlSdt.prototype["GetInternalId"] = ApiBlockLvlSdt.prototype.GetInternalId; ApiBlockLvlSdt.prototype["SetLock"] = ApiBlockLvlSdt.prototype.SetLock; ApiBlockLvlSdt.prototype["GetLock"] = ApiBlockLvlSdt.prototype.GetLock; ApiBlockLvlSdt.prototype["SetTag"] = ApiBlockLvlSdt.prototype.SetTag;