File tree Expand file tree Collapse file tree 7 files changed +36
-12
lines changed
Document-Processing/Word/Word-Processor Expand file tree Collapse file tree 7 files changed +36
-12
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,11 @@ this.documentEditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Ju
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
6768this .documentEditor .selection .paragraphFormat .lineSpacingType = ' AtLeast' ;
68- this .documentEditor .selection .paragraphFormat .lineSpacing = 6 ;
69+ // Set line spacing value (supports both integer and float)
70+ this .documentEditor .selection .paragraphFormat .lineSpacing = 6 ; // Integer value
71+ this .documentEditor .selection .paragraphFormat .lineSpacing = 6.5 ; // Float value
6972```
7073
7174## 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``` 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
@@ -149,7 +152,9 @@ documenteditor.documentEditorSettings.showHiddenMarks = true;
149152{% include code-snippet/document-editor/asp-net-mvc/paragraph-format/razor %}
150153{% endhighlight %}
151154{% highlight c# tabtitle="Paragraph-format.cs" %}
152- {% endhighlight %}{% endtabs %}
155+ {% include code-snippet/document-editor/asp-net-mvc/paragraph-format/document-editor.cs %}
156+ {% endhighlight %}
157+ {% endtabs %}
153158
154159
155160
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,12 @@ 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
82+
7983```
8084
8185## 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