diff --git a/Document-Processing/Word/Word-Processor/angular/content-control.md b/Document-Processing/Word/Word-Processor/angular/content-control.md index ae5af018a7..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 -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 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 -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 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(); @@ -89,7 +93,9 @@ 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. + +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/asp-net-core/content-control.md b/Document-Processing/Word/Word-Processor/asp-net-core/content-control.md index d1fc5efbab..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 -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 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 -Content control properties can be exported using the `exportContentControlData` method. +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(); @@ -89,7 +93,9 @@ 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. + +The following code snippet illustrates how to reset the content control properties: {% 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..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 -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 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 -Content control properties can be exported using the `exportContentControlData` method. +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(); @@ -89,7 +93,9 @@ 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. + +The following code snippet illustrates how to reset the content control properties: {% 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..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 -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 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 -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 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(); @@ -89,7 +93,9 @@ 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. + +The following code snippet illustrates how to reset the content control properties: {% 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..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 -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 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 -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 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(); @@ -89,7 +93,9 @@ 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. + +The following code snippet illustrates how to reset the content control properties: {% 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..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 -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 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 -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 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(); @@ -89,7 +93,9 @@ 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. + +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/vue/content-control.md b/Document-Processing/Word/Word-Processor/vue/content-control.md index 417d00e670..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 -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 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 -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 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(); @@ -88,7 +92,9 @@ 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. + +The following code snippet illustrates how to reset the content control properties: {% highlight ts %} var data = [];