File tree Expand file tree Collapse file tree 7 files changed +33
-13
lines changed
Document-Processing/Word/Word-Processor Expand file tree Collapse file tree 7 files changed +33
-13
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,11 @@ this.documentEditor.selection.paragraphFormat.lineSpacing= 6;
7373You can define the spacing before or after the paragraph by using the following sample code.
7474
7575``` typescript
76+ // Set line spacing type
7677this .documentEditor .selection .paragraphFormat .beforeSpacing = 24 ;
77- this .documentEditor .selection .paragraphFormat .afterSpacing = 24 ;
78+ // Set line spacing value (supports both integer and float)
79+ this .documentEditor .selection .paragraphFormat .lineSpacing = 6 ; // Integer value
80+ this .documentEditor .selection .paragraphFormat .lineSpacing = 6.5 ; // Float value
7881```
7982
8083You can also set automatic spacing before and after the paragraph by using the following sample code.
Original file line number Diff line number Diff line change @@ -64,8 +64,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
6464You can define the line spacing and its type for selected paragraphs using the following sample code.
6565
6666``` typescript
67+ // Set line spacing type
6768documenteditor .selection .paragraphFormat .lineSpacingType = ' AtLeast' ;
68- documenteditor .selection .paragraphFormat .lineSpacing = 6 ;
69+ // Set line spacing value (supports both integer and float)
70+ documenteditor .selection .paragraphFormat .lineSpacing = 6 ; // Integer value
71+ documenteditor .selection .paragraphFormat .lineSpacing = 6.5 ; // Float value
6972```
7073
7174## Paragraph spacing
@@ -149,7 +152,9 @@ documenteditor.documentEditorSettings.showHiddenMarks = true;
149152{% include code-snippet/document-editor/asp-net-core/paragraph-format/tagHelper %}
150153{% endhighlight %}
151154{% highlight c# tabtitle="Paragraph-format.cs" %}
152- {% endhighlight %}{% endtabs %}
155+ {% include code-snippet/document-editor/asp-net-core/paragraph-format/document-editor.cs %}
156+ {% endhighlight %}
157+ {% endtabs %}
153158
154159
155160## See Also
Original file line number Diff line number Diff line change @@ -64,8 +64,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
6464You can define the line spacing and its type for selected paragraphs using the following sample code.
6565
6666``` typescript
67+ // Set line spacing type
6768documenteditor .selection .paragraphFormat .lineSpacingType = ' AtLeast' ;
68- documenteditor .selection .paragraphFormat .lineSpacing = 6 ;
69+ // Set line spacing value (supports both integer and float)
70+ documenteditor .selection .paragraphFormat .lineSpacing = 6 ; // Integer value
71+ documenteditor .selection .paragraphFormat .lineSpacing = 6.5 ; // Float value
6972```
7073
7174## Paragraph spacing
@@ -148,8 +151,7 @@ documenteditor.documentEditorSettings.showHiddenMarks = true;
148151{% highlight razor tabtitle="CSHTML" %}
149152{% include code-snippet/document-editor/asp-net-mvc/paragraph-format/razor %}
150153{% endhighlight %}
151- {% highlight c# tabtitle="Paragraph-format.cs" %}
152- {% endhighlight %}{% endtabs %}
154+ {% endtabs %}
153155
154156
155157
Original file line number Diff line number Diff line change 11---
22layout : post
3- title : Paragraph format in JavaScript (ES5) Document editor control
3+ title : Paragraph format in JavaScript (ES5) Document editor | Syncfusion
44description : Learn here all about Paragraph format in Syncfusion JavaScript (ES5) Document editor control of Syncfusion Essential JS 2 and more.
55platform : document-processing
66control : Paragraph format
@@ -74,8 +74,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
7474You can define the line spacing and its type for selected paragraphs using the following sample code.
7575
7676``` ts
77+ // Set line spacing type
7778documenteditor .selection .paragraphFormat .lineSpacingType = ' AtLeast' ;
78- documenteditor .selection .paragraphFormat .lineSpacing = 6 ;
79+ // Set line spacing value (supports both integer and float)
80+ documenteditor .selection .paragraphFormat .lineSpacing = 6 ; // Integer value
81+ documenteditor .selection .paragraphFormat .lineSpacing = 6.5 ; // Float value
7982```
8083
8184## Paragraph spacing
Original file line number Diff line number Diff line change 11---
22layout : post
3- title : Paragraph format in JavaScript (ES6) Document editor control | Syncfusion
3+ title : Paragraph format in JavaScript (ES6) Document editor | Syncfusion
44description : Learn here all about Paragraph format in Syncfusion JavaScript (ES6) Document editor control of Syncfusion Essential JS 2 and more.
55platform : document-processing
66control : Paragraph format
@@ -74,8 +74,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
7474You can define the line spacing and its type for selected paragraphs using the following sample code.
7575
7676``` ts
77+ // Set line spacing type
7778documenteditor .selection .paragraphFormat .lineSpacingType = ' AtLeast' ;
78- documenteditor .selection .paragraphFormat .lineSpacing = 6 ;
79+ // Set line spacing value (supports both integer and float)
80+ documenteditor .selection .paragraphFormat .lineSpacing = 6 ; // Integer value
81+ documenteditor .selection .paragraphFormat .lineSpacing = 6.5 ; // Float value
7982```
8083
8184## Paragraph spacing
Original file line number Diff line number Diff line change @@ -64,8 +64,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
6464You can define the line spacing and its type for selected paragraphs using the following sample code.
6565
6666``` ts
67+ // Set line spacing type
6768documenteditor .selection .paragraphFormat .lineSpacingType = ' AtLeast' ;
68- documenteditor .selection .paragraphFormat .lineSpacing = 6 ;
69+ // Set line spacing value (supports both integer and float)
70+ documenteditor .selection .paragraphFormat .lineSpacing = 6 ; // Integer value
71+ documenteditor .selection .paragraphFormat .lineSpacing = 6.5 ; // Float value
6972```
7073
7174## Paragraph spacing
Original file line number Diff line number Diff line change @@ -67,8 +67,9 @@ You can define the line spacing and its type for selected paragraphs using the f
6767// Set line spacing type.
6868this .$refs .documenteditor .ej2Instances .selection .paragraphFormat .lineSpacingType = ' AtLeast' ;
6969
70- // Set line spacing.
71- this .$refs .documenteditor .ej2Instances .selection .paragraphFormat .lineSpacing = 6 ;
70+ // Set line spacing value (supports both integer and float)
71+ this .$refs .documenteditor .ej2Instances .selection .paragraphFormat .lineSpacing = 6 ; // Integer value
72+ this .$refs .documenteditor .ej2Instances .selection .paragraphFormat .lineSpacing = 6.5 ; // Float value
7273```
7374
7475## Paragraph spacing
You can’t perform that action at this time.
0 commit comments