From a396af36a53864a361f15dcb5662bbcf39f9eac0 Mon Sep 17 00:00:00 2001 From: arunesh4965 Date: Tue, 1 Sep 2026 19:54:45 +0530 Subject: [PATCH 1/2] 1041059: Revamped content control UG page with proper details --- .../Word/Word-Processor/angular/content-control.md | 6 +++--- .../Word/Word-Processor/asp-net-core/content-control.md | 6 +++--- .../Word/Word-Processor/asp-net-mvc/content-control.md | 6 +++--- .../Word/Word-Processor/javascript-es5/content-control.md | 6 +++--- .../Word/Word-Processor/javascript-es6/content-control.md | 6 +++--- .../Word/Word-Processor/react/content-control.md | 6 +++--- .../Word/Word-Processor/vue/content-control.md | 6 +++--- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Document-Processing/Word/Word-Processor/angular/content-control.md b/Document-Processing/Word/Word-Processor/angular/content-control.md index ae5af018a7..683b5f9119 100644 --- a/Document-Processing/Word/Word-Processor/angular/content-control.md +++ b/Document-Processing/Word/Word-Processor/angular/content-control.md @@ -70,7 +70,7 @@ this.container.documentEditor.editor.insertContentControl('Picture', 'data:image ## Import Content Control Properties -Content control properties can be set using the [`ContentControlInfo`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/contentControlInfo) and imported using the [`importContentControlData`](https://ej2.syncfusion.com/angular/documentation/api/document-editor#importcontentcontroldata) method. +Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/angular/documentation/api/document-editor#importcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/contentControlInfo) objects and specify the content control title and content control type to identify the content controls and update them with own values. {% highlight ts %} let data: ContentControlInfo[] = []; @@ -81,7 +81,7 @@ this.container.documentEditor.importContentControlData(data); ## Export Content Control Properties -Content control properties can be exported using the [`exportContentControlData`](https://ej2.syncfusion.com/angular/documentation/api/document-editor#exportcontentcontroldata) method. +Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/angular/documentation/api/document-editor#exportcontentcontroldata) method. This method exports all available content controls properties and returns them as a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/contentControlInfo) objects, allowing you to access properties such as the content control title, type, tag, and value. {% highlight ts %} let contentControlInfos: ContentControlInfo[] = this.container.documentEditor.exportContentControlData(); @@ -89,7 +89,7 @@ let contentControlInfos: ContentControlInfo[] = this.container.documentEditor.ex ## Reset Content Control -Content control properties can be reset using the [`resetContentControlData`](https://ej2.syncfusion.com/angular/documentation/api/document-editor#resetcontentcontroldata) method. +Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the [`resetContentControlData`](https://ej2.syncfusion.com/angular/documentation/api/document-editor#resetcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/contentcontrolinfo) objects and specify the content control title to identify the content controls to reset. {% highlight ts %} let data: ContentControlInfo[] = []; diff --git a/Document-Processing/Word/Word-Processor/asp-net-core/content-control.md b/Document-Processing/Word/Word-Processor/asp-net-core/content-control.md index d1fc5efbab..db8154e07e 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-core/content-control.md +++ b/Document-Processing/Word/Word-Processor/asp-net-core/content-control.md @@ -70,7 +70,7 @@ container.documentEditor.editor.insertContentControl('Picture', 'data:image/png; ## Import content control properties -Content control properties can be set using the `ContentControlInfo` object and imported using the `importContentControlData` method. +Replace an existing content control value with a new value using the `importContentControlData` method. Pass one or more `ContentControlInfo` objects and specify the content control title and content control type to identify the content controls and update them with own values. {% highlight ts %} var data = []; @@ -81,7 +81,7 @@ container.documentEditor.importContentControlData(data); ## Export content control properties -Content control properties can be exported using the `exportContentControlData` method. +Retrieve the content controls properties present in a document using `exportContentControlData` method. This method exports all available content controls properties and returns them as a collection of `ContentControlInfo` objects, allowing you to access properties such as the content control title, type, tag, and value. {% highlight ts %} var contentControlInfos = container.documentEditor.exportContentControlData(); @@ -89,7 +89,7 @@ var contentControlInfos = container.documentEditor.exportContentControlData(); ## Reset content control -Content control properties can be reset using the `resetContentControlData` method. +Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the `resetContentControlData` method. Pass one or more `ContentControlInfo` objects and specify the content control title to identify the content controls to reset. {% highlight ts %} var data = []; diff --git a/Document-Processing/Word/Word-Processor/asp-net-mvc/content-control.md b/Document-Processing/Word/Word-Processor/asp-net-mvc/content-control.md index 1838c4d905..9052f8e5bd 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-mvc/content-control.md +++ b/Document-Processing/Word/Word-Processor/asp-net-mvc/content-control.md @@ -70,7 +70,7 @@ container.documentEditor.editor.insertContentControl('Picture', 'data:image/png; ## Import content control properties -Content control properties can be set using the `ContentControlInfo` and imported using the `importContentControlData` method. +Replace an existing content control value with a new value using the `importContentControlData` method. Pass one or more `ContentControlInfo` objects and specify the content control title and content control type to identify the content controls and update them with own values. {% highlight ts %} var data = []; @@ -81,7 +81,7 @@ container.documentEditor.importContentControlData(data); ## Export content control properties -Content control properties can be exported using the `exportContentControlData` method. +Retrieve the content controls properties present in a document using `exportContentControlData` method. This method exports all available content controls properties and returns them as a collection of `ContentControlInfo` objects, allowing you to access properties such as the content control title, type, tag, and value. {% highlight ts %} var contentControlInfos = container.documentEditor.exportContentControlData(); @@ -89,7 +89,7 @@ var contentControlInfos = container.documentEditor.exportContentControlData(); ## Reset content control -Content control properties can be reset using the `resetContentControlData` method. +Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the `resetContentControlData` method. Pass one or more `ContentControlInfo` objects and specify the content control title to identify the content controls to reset. {% highlight ts %} var data = []; diff --git a/Document-Processing/Word/Word-Processor/javascript-es5/content-control.md b/Document-Processing/Word/Word-Processor/javascript-es5/content-control.md index ebda551e59..226ba20351 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es5/content-control.md +++ b/Document-Processing/Word/Word-Processor/javascript-es5/content-control.md @@ -70,7 +70,7 @@ container.documentEditor.editor.insertContentControl('Picture', 'data:image/png; ## Import content control properties -Content control properties can be set using the [`ContentControlInfo`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/contentControlInfo) and imported using the [`importContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#importcontentcontroldata) method. +Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#importcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/contentControlInfo) objects and specify the content control title and content control type to identify the content controls and update them with own values. {% highlight js %} var data = []; @@ -81,7 +81,7 @@ container.documentEditor.importContentControlData(data); ## Export content control properties -Content control properties can be exported using the [`exportContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#exportcontentcontroldata) method. +Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#exportcontentcontroldata) method. This method exports all available content controls properties and returns them as a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/contentControlInfo) objects, allowing you to access properties such as the content control title, type, tag, and value. {% highlight js %} var contentControlInfos = container.documentEditor.exportContentControlData(); @@ -89,7 +89,7 @@ var contentControlInfos = container.documentEditor.exportContentControlData(); ## Reset content control -Content control properties can be reset using the [`resetContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#resetcontentcontroldata) method. +Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the [`resetContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#resetcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/contentcontrolinfo) objects and specify the content control title to identify the content controls to reset. {% highlight js %} var data = []; diff --git a/Document-Processing/Word/Word-Processor/javascript-es6/content-control.md b/Document-Processing/Word/Word-Processor/javascript-es6/content-control.md index 941d550cdd..92f6a954f8 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es6/content-control.md +++ b/Document-Processing/Word/Word-Processor/javascript-es6/content-control.md @@ -70,7 +70,7 @@ container.documentEditor.editor.insertContentControl('Picture', 'data:image/png; ## Import content control properties -Content control properties can be set using the [`ContentControlInfo`](https://ej2.syncfusion.com/documentation/api/document-editor#importContentControlData) and imported using [`importContentControlData`](https://ej2.syncfusion.com/documentation/api/document-editor#importContentControlData). +Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/documentation/api/document-editor#importContentControlData) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/documentation/api/document-editor#importContentControlData) objects and specify the content control title and content control type to identify the content controls and update them with own values. {% highlight ts %} let data: ContentControlInfo[] = []; @@ -81,7 +81,7 @@ container.documentEditor.importContentControlData(data); ## Export content control properties -Content control properties can be exported using the [`exportContentControlData`](https://ej2.syncfusion.com/documentation/api/document-editor#exportContentControlData). +Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/documentation/api/document-editor#exportContentControlData) method. This method exports all available content controls properties and returns them as a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/documentation/api/document-editor#importContentControlData) objects, allowing you to access properties such as the content control title, type, tag, and value. {% highlight ts %} let contentControlInfos: ContentControlInfo[] = container.documentEditor.exportContentControlData(); @@ -89,7 +89,7 @@ let contentControlInfos: ContentControlInfo[] = container.documentEditor.exportC ## Reset content control properties -Content control properties can be reset using the [`resetContentControlData`](https://ej2.syncfusion.com/documentation/api/document-editor#resetcontentcontroldata). +Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the [`resetContentControlData`](https://ej2.syncfusion.com/documentation/api/document-editor#resetcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/documentation/api/document-editor/contentcontrolinfo) objects and specify the content control title to identify the content controls to reset. {% highlight ts %} diff --git a/Document-Processing/Word/Word-Processor/react/content-control.md b/Document-Processing/Word/Word-Processor/react/content-control.md index fc89b38a44..f92ccb5303 100644 --- a/Document-Processing/Word/Word-Processor/react/content-control.md +++ b/Document-Processing/Word/Word-Processor/react/content-control.md @@ -70,7 +70,7 @@ this.container.documentEditor.editor.insertContentControl('Picture', 'data:image ## Import Content Control Properties -Content control properties can be set using the [`ContentControlInfo`](https://ej2.syncfusion.com/react/documentation/api/document-editor/contentControlInfo) and imported using the [`importContentControlData`](https://ej2.syncfusion.com/react/documentation/api/document-editor#importcontentcontroldata) method. +Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/react/documentation/api/document-editor#importcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/react/documentation/api/document-editor/contentControlInfo) objects and specify the content control title and content control type to identify the content controls and update them with own values. {% highlight ts %} let data: ContentControlInfo[] = []; @@ -81,7 +81,7 @@ this.container.documentEditor.importContentControlData(data); ## Export Content Control Properties -Content control properties can be exported using the [`exportContentControlData`](https://ej2.syncfusion.com/react/documentation/api/document-editor#exportcontentcontroldata) method. +Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/react/documentation/api/document-editor#exportcontentcontroldata) method. This method exports all available content controls properties and returns them as a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/react/documentation/api/document-editor/contentControlInfo) objects, allowing you to access properties such as the content control title, type, tag, and value. {% highlight ts %} let contentControlInfos: ContentControlInfo[] = this.container.documentEditor.exportContentControlData(); @@ -89,7 +89,7 @@ let contentControlInfos: ContentControlInfo[] = this.container.documentEditor.ex ## Reset Content Control -Content control properties can be reset using the [`resetContentControlData`](https://ej2.syncfusion.com/react/documentation/api/document-editor#resetcontentcontroldata) method. +Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the [`resetContentControlData`](https://ej2.syncfusion.com/react/documentation/api/document-editor#resetcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/react/documentation/api/document-editor/contentcontrolinfo) objects and specify the content control title to identify the content controls to reset. {% highlight ts %} let data: ContentControlInfo[] = []; diff --git a/Document-Processing/Word/Word-Processor/vue/content-control.md b/Document-Processing/Word/Word-Processor/vue/content-control.md index 417d00e670..18a2a7fb32 100644 --- a/Document-Processing/Word/Word-Processor/vue/content-control.md +++ b/Document-Processing/Word/Word-Processor/vue/content-control.md @@ -70,7 +70,7 @@ this.$refs.container.ej2Instances.documentEditor.editor.insertContentControl('Pi ## Import content control properties -Content control properties can be set using the [`ContentControlInfo`](https://ej2.syncfusion.com/vue/documentation/api/document-editor/contentControlInfo) and import it using [`importContentControlData`](https://ej2.syncfusion.com/vue/documentation/api/document-editor#importcontentcontroldata). Use this to apply property values to existing content controls in the document. +Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/vue/documentation/api/document-editor#importcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/vue/documentation/api/document-editor/contentControlInfo) objects and specify the content control title and content control type to identify the content controls and update them with own values. {% highlight ts %} var data = []; @@ -80,7 +80,7 @@ this.$refs.container.ej2Instances.documentEditor.importContentControlData(data); ## Export content control properties -Content control properties can be exported using the [`exportContentControlData`](https://ej2.syncfusion.com/vue/documentation/api/document-editor#exportcontentcontroldata). +Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/vue/documentation/api/document-editor#exportcontentcontroldata) method. This method exports all available content controls properties and returns them as a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/vue/documentation/api/document-editor/contentControlInfo) objects, allowing you to access properties such as the content control title, type, tag, and value. {% highlight ts %} var contentControlInfos = this.$refs.container.ej2Instances.documentEditor.exportContentControlData(); @@ -88,7 +88,7 @@ var contentControlInfos = this.$refs.container.ej2Instances.documentEditor.expor ## Reset content control -Content control properties can be reset using the [`resetContentControlData`](https://ej2.syncfusion.com/vue/documentation/api/document-editor#resetcontentcontroldata). Use this to revert content controls back to their default property values and clear any previously imported or edited values. +Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the [`resetContentControlData`](https://ej2.syncfusion.com/vue/documentation/api/document-editor#resetcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/vue/documentation/api/document-editor/contentcontrolinfo) objects and specify the content control title to identify the content controls to reset. {% highlight ts %} var data = []; From 61d59555534be1b49d611e8e8b66a6334a8b6283 Mon Sep 17 00:00:00 2001 From: arunesh4965 Date: Tue, 1 Sep 2026 22:00:17 +0530 Subject: [PATCH 2/2] 1041059: Modified the text contents --- .../Word/Word-Processor/angular/content-control.md | 10 ++++++++-- .../Word-Processor/asp-net-core/content-control.md | 10 ++++++++-- .../Word/Word-Processor/asp-net-mvc/content-control.md | 10 ++++++++-- .../Word-Processor/javascript-es5/content-control.md | 10 ++++++++-- .../Word-Processor/javascript-es6/content-control.md | 10 ++++++++-- .../Word/Word-Processor/react/content-control.md | 10 ++++++++-- .../Word/Word-Processor/vue/content-control.md | 10 ++++++++-- 7 files changed, 56 insertions(+), 14 deletions(-) diff --git a/Document-Processing/Word/Word-Processor/angular/content-control.md b/Document-Processing/Word/Word-Processor/angular/content-control.md index 683b5f9119..c3836c981c 100644 --- a/Document-Processing/Word/Word-Processor/angular/content-control.md +++ b/Document-Processing/Word/Word-Processor/angular/content-control.md @@ -70,7 +70,9 @@ this.container.documentEditor.editor.insertContentControl('Picture', 'data:image ## Import Content Control Properties -Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/angular/documentation/api/document-editor#importcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/contentControlInfo) objects and specify the content control title and content control type to identify the content controls and update them with own values. +Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/angular/documentation/api/document-editor#importcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/contentControlInfo) objects and specify the content control title and content control type to identify the content control and update them with new values. + +The following code snippet illustrates how to import the content control properties. {% highlight ts %} let data: ContentControlInfo[] = []; @@ -81,7 +83,9 @@ this.container.documentEditor.importContentControlData(data); ## Export Content Control Properties -Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/angular/documentation/api/document-editor#exportcontentcontroldata) method. This method exports all available content controls properties and returns them as a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/contentControlInfo) objects, allowing you to access properties such as the content control title, type, tag, and value. +Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/angular/documentation/api/document-editor#exportcontentcontroldata) method. This method returns a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/contentControlInfo) objects, allowing you to access properties such as the content control title, type, tag, and value. + +The following code snippet illustrates how to export the content control properties. {% highlight ts %} let contentControlInfos: ContentControlInfo[] = this.container.documentEditor.exportContentControlData(); @@ -91,6 +95,8 @@ let contentControlInfos: ContentControlInfo[] = this.container.documentEditor.ex Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the [`resetContentControlData`](https://ej2.syncfusion.com/angular/documentation/api/document-editor#resetcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/contentcontrolinfo) objects and specify the content control title to identify the content controls to reset. +The following code snippet illustrates how to reset the content control properties: + {% highlight ts %} let data: ContentControlInfo[] = []; let contentControlData: ContentControlInfo = { title: placeHolderPrefix + 'Name', tag: '', value: 'John', canDelete: false, canEdit: false, type: 'RichText' }; diff --git a/Document-Processing/Word/Word-Processor/asp-net-core/content-control.md b/Document-Processing/Word/Word-Processor/asp-net-core/content-control.md index db8154e07e..a9707b3755 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-core/content-control.md +++ b/Document-Processing/Word/Word-Processor/asp-net-core/content-control.md @@ -70,7 +70,9 @@ container.documentEditor.editor.insertContentControl('Picture', 'data:image/png; ## Import content control properties -Replace an existing content control value with a new value using the `importContentControlData` method. Pass one or more `ContentControlInfo` objects and specify the content control title and content control type to identify the content controls and update them with own values. +Replace an existing content control value with a new value using the `importContentControlData` method. Pass one or more `ContentControlInfo` objects and specify the content control title and content control type to identify the content control and update them with new values. + +The following code snippet illustrates how to import the content control properties. {% highlight ts %} var data = []; @@ -81,7 +83,9 @@ container.documentEditor.importContentControlData(data); ## Export content control properties -Retrieve the content controls properties present in a document using `exportContentControlData` method. This method exports all available content controls properties and returns them as a collection of `ContentControlInfo` objects, allowing you to access properties such as the content control title, type, tag, and value. +Retrieve the content controls properties present in a document using `exportContentControlData` method. This method returns a collection of `ContentControlInfo` objects, allowing you to access properties such as the content control title, type, tag, and value. + +The following code snippet illustrates how to export the content control properties. {% highlight ts %} var contentControlInfos = container.documentEditor.exportContentControlData(); @@ -91,6 +95,8 @@ var contentControlInfos = container.documentEditor.exportContentControlData(); Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the `resetContentControlData` method. Pass one or more `ContentControlInfo` objects and specify the content control title to identify the content controls to reset. +The following code snippet illustrates how to reset the content control properties: + {% highlight ts %} var data = []; var contentControlData = { title: placeHolderPrefix + 'Name', tag: '', value: 'John', canDelete: false, canEdit: false, type: 'RichText' }; diff --git a/Document-Processing/Word/Word-Processor/asp-net-mvc/content-control.md b/Document-Processing/Word/Word-Processor/asp-net-mvc/content-control.md index 9052f8e5bd..ce13f0a67a 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-mvc/content-control.md +++ b/Document-Processing/Word/Word-Processor/asp-net-mvc/content-control.md @@ -70,7 +70,9 @@ container.documentEditor.editor.insertContentControl('Picture', 'data:image/png; ## Import content control properties -Replace an existing content control value with a new value using the `importContentControlData` method. Pass one or more `ContentControlInfo` objects and specify the content control title and content control type to identify the content controls and update them with own values. +Replace an existing content control value with a new value using the `importContentControlData` method. Pass one or more `ContentControlInfo` objects and specify the content control title and content control type to identify the content control and update them with new values. + +The following code snippet illustrates how to import the content control properties. {% highlight ts %} var data = []; @@ -81,7 +83,9 @@ container.documentEditor.importContentControlData(data); ## Export content control properties -Retrieve the content controls properties present in a document using `exportContentControlData` method. This method exports all available content controls properties and returns them as a collection of `ContentControlInfo` objects, allowing you to access properties such as the content control title, type, tag, and value. +Retrieve the content controls properties present in a document using `exportContentControlData` method. This method returns a collection of `ContentControlInfo` objects, allowing you to access properties such as the content control title, type, tag, and value. + +The following code snippet illustrates how to export the content control properties. {% highlight ts %} var contentControlInfos = container.documentEditor.exportContentControlData(); @@ -91,6 +95,8 @@ var contentControlInfos = container.documentEditor.exportContentControlData(); Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the `resetContentControlData` method. Pass one or more `ContentControlInfo` objects and specify the content control title to identify the content controls to reset. +The following code snippet illustrates how to reset the content control properties: + {% highlight ts %} var data = []; var contentControlData = { title: placeHolderPrefix + 'Name', tag: '', value: 'John', canDelete: false, canEdit: false, type: 'RichText' }; diff --git a/Document-Processing/Word/Word-Processor/javascript-es5/content-control.md b/Document-Processing/Word/Word-Processor/javascript-es5/content-control.md index 226ba20351..2854c56c6b 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es5/content-control.md +++ b/Document-Processing/Word/Word-Processor/javascript-es5/content-control.md @@ -70,7 +70,9 @@ container.documentEditor.editor.insertContentControl('Picture', 'data:image/png; ## Import content control properties -Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#importcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/contentControlInfo) objects and specify the content control title and content control type to identify the content controls and update them with own values. +Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#importcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/contentControlInfo) objects and specify the content control title and content control type to identify the content control and update them with new values. + +The following code snippet illustrates how to import the content control properties. {% highlight js %} var data = []; @@ -81,7 +83,9 @@ container.documentEditor.importContentControlData(data); ## Export content control properties -Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#exportcontentcontroldata) method. This method exports all available content controls properties and returns them as a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/contentControlInfo) objects, allowing you to access properties such as the content control title, type, tag, and value. +Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#exportcontentcontroldata) method. This method returns a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/contentControlInfo) objects, allowing you to access properties such as the content control title, type, tag, and value. + +The following code snippet illustrates how to export the content control properties. {% highlight js %} var contentControlInfos = container.documentEditor.exportContentControlData(); @@ -91,6 +95,8 @@ var contentControlInfos = container.documentEditor.exportContentControlData(); Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the [`resetContentControlData`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor#resetcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/contentcontrolinfo) objects and specify the content control title to identify the content controls to reset. +The following code snippet illustrates how to reset the content control properties: + {% highlight js %} var data = []; var contentControlData = { title: placeHolderPrefix + 'Name', tag: '', value: 'John', canDelete: false, canEdit: false, type: 'RichText' }; diff --git a/Document-Processing/Word/Word-Processor/javascript-es6/content-control.md b/Document-Processing/Word/Word-Processor/javascript-es6/content-control.md index 92f6a954f8..ba6262e6ea 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es6/content-control.md +++ b/Document-Processing/Word/Word-Processor/javascript-es6/content-control.md @@ -70,7 +70,9 @@ container.documentEditor.editor.insertContentControl('Picture', 'data:image/png; ## Import content control properties -Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/documentation/api/document-editor#importContentControlData) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/documentation/api/document-editor#importContentControlData) objects and specify the content control title and content control type to identify the content controls and update them with own values. +Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/documentation/api/document-editor#importContentControlData) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/documentation/api/document-editor#importContentControlData) objects and specify the content control title and content control type to identify the content control and update them with new values. + +The following code snippet illustrates how to import the content control properties. {% highlight ts %} let data: ContentControlInfo[] = []; @@ -81,7 +83,9 @@ container.documentEditor.importContentControlData(data); ## Export content control properties -Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/documentation/api/document-editor#exportContentControlData) method. This method exports all available content controls properties and returns them as a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/documentation/api/document-editor#importContentControlData) objects, allowing you to access properties such as the content control title, type, tag, and value. +Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/documentation/api/document-editor#exportContentControlData) method. This method returns a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/documentation/api/document-editor#importContentControlData) objects, allowing you to access properties such as the content control title, type, tag, and value. + +The following code snippet illustrates how to export the content control properties. {% highlight ts %} let contentControlInfos: ContentControlInfo[] = container.documentEditor.exportContentControlData(); @@ -91,6 +95,8 @@ let contentControlInfos: ContentControlInfo[] = container.documentEditor.exportC Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the [`resetContentControlData`](https://ej2.syncfusion.com/documentation/api/document-editor#resetcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/documentation/api/document-editor/contentcontrolinfo) objects and specify the content control title to identify the content controls to reset. +The following code snippet illustrates how to reset the content control properties: + {% highlight ts %} let data: ContentControlInfo[] = []; diff --git a/Document-Processing/Word/Word-Processor/react/content-control.md b/Document-Processing/Word/Word-Processor/react/content-control.md index f92ccb5303..1e5dcbe95f 100644 --- a/Document-Processing/Word/Word-Processor/react/content-control.md +++ b/Document-Processing/Word/Word-Processor/react/content-control.md @@ -70,7 +70,9 @@ this.container.documentEditor.editor.insertContentControl('Picture', 'data:image ## Import Content Control Properties -Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/react/documentation/api/document-editor#importcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/react/documentation/api/document-editor/contentControlInfo) objects and specify the content control title and content control type to identify the content controls and update them with own values. +Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/react/documentation/api/document-editor#importcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/react/documentation/api/document-editor/contentControlInfo) objects and specify the content control title and content control type to identify the content control and update them with new values. + +The following code snippet illustrates how to import the content control properties. {% highlight ts %} let data: ContentControlInfo[] = []; @@ -81,7 +83,9 @@ this.container.documentEditor.importContentControlData(data); ## Export Content Control Properties -Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/react/documentation/api/document-editor#exportcontentcontroldata) method. This method exports all available content controls properties and returns them as a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/react/documentation/api/document-editor/contentControlInfo) objects, allowing you to access properties such as the content control title, type, tag, and value. +Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/react/documentation/api/document-editor#exportcontentcontroldata) method. This method returns a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/react/documentation/api/document-editor/contentControlInfo) objects, allowing you to access properties such as the content control title, type, tag, and value. + +The following code snippet illustrates how to export the content control properties. {% highlight ts %} let contentControlInfos: ContentControlInfo[] = this.container.documentEditor.exportContentControlData(); @@ -91,6 +95,8 @@ let contentControlInfos: ContentControlInfo[] = this.container.documentEditor.ex Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the [`resetContentControlData`](https://ej2.syncfusion.com/react/documentation/api/document-editor#resetcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/react/documentation/api/document-editor/contentcontrolinfo) objects and specify the content control title to identify the content controls to reset. +The following code snippet illustrates how to reset the content control properties: + {% highlight ts %} let data: ContentControlInfo[] = []; let contentControlData: ContentControlInfo = { title: placeHolderPrefix + 'Name', tag: '', value: 'John', canDelete: false, canEdit: false, type: 'RichText' }; diff --git a/Document-Processing/Word/Word-Processor/vue/content-control.md b/Document-Processing/Word/Word-Processor/vue/content-control.md index 18a2a7fb32..915f9ea1eb 100644 --- a/Document-Processing/Word/Word-Processor/vue/content-control.md +++ b/Document-Processing/Word/Word-Processor/vue/content-control.md @@ -70,7 +70,9 @@ this.$refs.container.ej2Instances.documentEditor.editor.insertContentControl('Pi ## Import content control properties -Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/vue/documentation/api/document-editor#importcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/vue/documentation/api/document-editor/contentControlInfo) objects and specify the content control title and content control type to identify the content controls and update them with own values. +Replace an existing content control value with a new value using the [`importContentControlData`](https://ej2.syncfusion.com/vue/documentation/api/document-editor#importcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/vue/documentation/api/document-editor/contentControlInfo) objects and specify the content control title and content control type to identify the content control and update them with new values. + +The following code snippet illustrates how to import the content control properties. {% highlight ts %} var data = []; @@ -80,7 +82,9 @@ this.$refs.container.ej2Instances.documentEditor.importContentControlData(data); ## Export content control properties -Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/vue/documentation/api/document-editor#exportcontentcontroldata) method. This method exports all available content controls properties and returns them as a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/vue/documentation/api/document-editor/contentControlInfo) objects, allowing you to access properties such as the content control title, type, tag, and value. +Retrieve the content controls properties present in a document using [`exportContentControlData`](https://ej2.syncfusion.com/vue/documentation/api/document-editor#exportcontentcontroldata) method. This method returns a collection of [`ContentControlInfo`](https://ej2.syncfusion.com/vue/documentation/api/document-editor/contentControlInfo) objects, allowing you to access properties such as the content control title, type, tag, and value. + +The following code snippet illustrates how to export the content control properties. {% highlight ts %} var contentControlInfos = this.$refs.container.ej2Instances.documentEditor.exportContentControlData(); @@ -90,6 +94,8 @@ var contentControlInfos = this.$refs.container.ej2Instances.documentEditor.expor Restore a content control to its default placeholder text (for example, "Click here or tap to insert text") using the [`resetContentControlData`](https://ej2.syncfusion.com/vue/documentation/api/document-editor#resetcontentcontroldata) method. Pass one or more [`ContentControlInfo`](https://ej2.syncfusion.com/vue/documentation/api/document-editor/contentcontrolinfo) objects and specify the content control title to identify the content controls to reset. +The following code snippet illustrates how to reset the content control properties: + {% highlight ts %} var data = []; let contentControlData = { title: placeHolderPrefix + 'Name', tag: '', value: 'John', canDelete: false, canEdit: false, type: 'RichText' };