diff --git a/Document-Processing/Word/Word-Processor/angular/paragraph-format.md b/Document-Processing/Word/Word-Processor/angular/paragraph-format.md index c1ddd467d..bc03aeb24 100644 --- a/Document-Processing/Word/Word-Processor/angular/paragraph-format.md +++ b/Document-Processing/Word/Word-Processor/angular/paragraph-format.md @@ -64,8 +64,11 @@ this.documentEditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Ju You can define the line spacing and its type for selected paragraphs using the following sample code. ```typescript +// Set line spacing type this.documentEditor.selection.paragraphFormat.lineSpacingType='AtLeast'; -this.documentEditor.selection.paragraphFormat.lineSpacing= 6; +// Set line spacing value (supports both integer and float) +this.documentEditor.selection.paragraphFormat.lineSpacing= 6; // Integer value +this.documentEditor.selection.paragraphFormat.lineSpacing= 6.5; // Float value ``` ## Paragraph spacing diff --git a/Document-Processing/Word/Word-Processor/asp-net-core/paragraph-format.md b/Document-Processing/Word/Word-Processor/asp-net-core/paragraph-format.md index 79eea84f7..d27677734 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-core/paragraph-format.md +++ b/Document-Processing/Word/Word-Processor/asp-net-core/paragraph-format.md @@ -64,8 +64,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify You can define the line spacing and its type for selected paragraphs using the following sample code. ```typescript +// Set line spacing type documenteditor.selection.paragraphFormat.lineSpacingType='AtLeast'; -documenteditor.selection.paragraphFormat.lineSpacing= 6; +// Set line spacing value (supports both integer and float) +documenteditor.selection.paragraphFormat.lineSpacing= 6; // Integer value +documenteditor.selection.paragraphFormat.lineSpacing= 6.5; // Float value ``` ## Paragraph spacing @@ -149,7 +152,9 @@ documenteditor.documentEditorSettings.showHiddenMarks = true; {% include code-snippet/document-editor/asp-net-core/paragraph-format/tagHelper %} {% endhighlight %} {% highlight c# tabtitle="Paragraph-format.cs" %} -{% endhighlight %}{% endtabs %} +{% include code-snippet/document-editor/asp-net-core/paragraph-format/document-editor.cs %} +{% endhighlight %} +{% endtabs %} ## See Also diff --git a/Document-Processing/Word/Word-Processor/asp-net-mvc/paragraph-format.md b/Document-Processing/Word/Word-Processor/asp-net-mvc/paragraph-format.md index a8702e7da..f44fcdc05 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-mvc/paragraph-format.md +++ b/Document-Processing/Word/Word-Processor/asp-net-mvc/paragraph-format.md @@ -64,8 +64,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify You can define the line spacing and its type for selected paragraphs using the following sample code. ```typescript +// Set line spacing type documenteditor.selection.paragraphFormat.lineSpacingType='AtLeast'; -documenteditor.selection.paragraphFormat.lineSpacing= 6; +// Set line spacing value (supports both integer and float) +documenteditor.selection.paragraphFormat.lineSpacing= 6; // Integer value +documenteditor.selection.paragraphFormat.lineSpacing= 6.5; // Float value ``` ## Paragraph spacing @@ -149,7 +152,9 @@ documenteditor.documentEditorSettings.showHiddenMarks = true; {% include code-snippet/document-editor/asp-net-mvc/paragraph-format/razor %} {% endhighlight %} {% highlight c# tabtitle="Paragraph-format.cs" %} -{% endhighlight %}{% endtabs %} +{% include code-snippet/document-editor/asp-net-mvc/paragraph-format/document-editor.cs %} +{% endhighlight %} +{% endtabs %} diff --git a/Document-Processing/Word/Word-Processor/javascript-es5/paragraph-format.md b/Document-Processing/Word/Word-Processor/javascript-es5/paragraph-format.md index 9bdcdb9d3..87fb2b2f2 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es5/paragraph-format.md +++ b/Document-Processing/Word/Word-Processor/javascript-es5/paragraph-format.md @@ -1,6 +1,6 @@ --- layout: post -title: Paragraph format in JavaScript (ES5) Document editor control +title: Paragraph format in JavaScript (ES5) Document editor | Syncfusion description: Learn here all about Paragraph format in Syncfusion JavaScript (ES5) Document editor control of Syncfusion Essential JS 2 and more. platform: document-processing control: Paragraph format @@ -74,8 +74,12 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify You can define the line spacing and its type for selected paragraphs using the following sample code. ```ts +// Set line spacing type documenteditor.selection.paragraphFormat.lineSpacingType = 'AtLeast'; -documenteditor.selection.paragraphFormat.lineSpacing = 6; +// Set line spacing value (supports both integer and float) +documenteditor.selection.paragraphFormat.lineSpacing = 6; // Integer value +documenteditor.selection.paragraphFormat.lineSpacing = 6.5; // Float value + ``` ## Paragraph spacing diff --git a/Document-Processing/Word/Word-Processor/javascript-es6/paragraph-format.md b/Document-Processing/Word/Word-Processor/javascript-es6/paragraph-format.md index e0b70222f..8f1d9ddfc 100644 --- a/Document-Processing/Word/Word-Processor/javascript-es6/paragraph-format.md +++ b/Document-Processing/Word/Word-Processor/javascript-es6/paragraph-format.md @@ -1,6 +1,6 @@ --- layout: post -title: Paragraph format in JavaScript (ES6) Document editor control | Syncfusion +title: Paragraph format in JavaScript (ES6) Document editor | Syncfusion description: Learn here all about Paragraph format in Syncfusion JavaScript (ES6) Document editor control of Syncfusion Essential JS 2 and more. platform: document-processing control: Paragraph format @@ -74,8 +74,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify You can define the line spacing and its type for selected paragraphs using the following sample code. ```ts +// Set line spacing type documenteditor.selection.paragraphFormat.lineSpacingType = 'AtLeast'; -documenteditor.selection.paragraphFormat.lineSpacing = 6; +// Set line spacing value (supports both integer and float) +documenteditor.selection.paragraphFormat.lineSpacing = 6; // Integer value +documenteditor.selection.paragraphFormat.lineSpacing = 6.5; // Float value ``` ## Paragraph spacing diff --git a/Document-Processing/Word/Word-Processor/react/paragraph-format.md b/Document-Processing/Word/Word-Processor/react/paragraph-format.md index 49a6b9354..3702e82d3 100644 --- a/Document-Processing/Word/Word-Processor/react/paragraph-format.md +++ b/Document-Processing/Word/Word-Processor/react/paragraph-format.md @@ -64,8 +64,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify You can define the line spacing and its type for selected paragraphs using the following sample code. ```ts +// Set line spacing type documenteditor.selection.paragraphFormat.lineSpacingType='AtLeast'; -documenteditor.selection.paragraphFormat.lineSpacing= 6; +// Set line spacing value (supports both integer and float) +documenteditor.selection.paragraphFormat.lineSpacing= 6; // Integer value +documenteditor.selection.paragraphFormat.lineSpacing= 6.5; // Float value ``` ## Paragraph spacing diff --git a/Document-Processing/Word/Word-Processor/vue/paragraph-format.md b/Document-Processing/Word/Word-Processor/vue/paragraph-format.md index 764ac2317..53216ad16 100644 --- a/Document-Processing/Word/Word-Processor/vue/paragraph-format.md +++ b/Document-Processing/Word/Word-Processor/vue/paragraph-format.md @@ -67,8 +67,9 @@ You can define the line spacing and its type for selected paragraphs using the f //Set line spacing type. this.$refs.documenteditor.ej2Instances.selection.paragraphFormat.lineSpacingType='AtLeast'; -//Set line spacing. -this.$refs.documenteditor.ej2Instances.selection.paragraphFormat.lineSpacing= 6; +// Set line spacing value (supports both integer and float) +this.$refs.documenteditor.ej2Instances.selection.paragraphFormat.lineSpacing= 6; // Integer value +this.$refs.documenteditor.ej2Instances.selection.paragraphFormat.lineSpacing= 6.5; // Float value ``` ## Paragraph spacing