Skip to content

Commit d408d1c

Browse files
committed
972568: Add comment to set double values in LineSpacing All Platform
1 parent 9baf647 commit d408d1c

File tree

7 files changed

+28
-8
lines changed

7 files changed

+28
-8
lines changed

Document-Processing/Word/Word-Processor/angular/paragraph-format.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ this.documentEditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Ju
6464
You can define the line spacing and its type for selected paragraphs using the following sample code.
6565

6666
```typescript
67+
// Set line spacing type
6768
this.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

Document-Processing/Word/Word-Processor/asp-net-core/paragraph-format.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
6464
You can define the line spacing and its type for selected paragraphs using the following sample code.
6565

6666
```typescript
67+
// Set line spacing type
6768
documenteditor.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

Document-Processing/Word/Word-Processor/asp-net-mvc/paragraph-format.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
6464
You can define the line spacing and its type for selected paragraphs using the following sample code.
6565

6666
```typescript
67+
// Set line spacing type
6768
documenteditor.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

Document-Processing/Word/Word-Processor/javascript-es5/paragraph-format.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,12 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
7474
You can define the line spacing and its type for selected paragraphs using the following sample code.
7575

7676
```ts
77+
// Set line spacing type
7778
documenteditor.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

Document-Processing/Word/Word-Processor/javascript-es6/paragraph-format.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
7474
You can define the line spacing and its type for selected paragraphs using the following sample code.
7575

7676
```ts
77+
// Set line spacing type
7778
documenteditor.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

Document-Processing/Word/Word-Processor/react/paragraph-format.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
6464
You can define the line spacing and its type for selected paragraphs using the following sample code.
6565

6666
```ts
67+
// Set line spacing type
6768
documenteditor.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

Document-Processing/Word/Word-Processor/vue/paragraph-format.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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.
6868
this.$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

0 commit comments

Comments
 (0)