File tree Expand file tree Collapse file tree 7 files changed +28
-8
lines changed
Document-Processing/Word/Word-Processor Expand file tree Collapse file tree 7 files changed +28
-8
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
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
Original file line number Diff line number Diff line change @@ -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 @@ -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