Skip to content

Commit 644cc10

Browse files
Merge pull request #1649 from syncfusion-content/972568-BlazorH
972568: Documentation on setLineSpacingAsync() for Document Editor
2 parents 496276a + 659dd7f commit 644cc10

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,11 @@ await documentEditor.Editor.ToggleTextAlignmentAsync(TextAlignment.Center);
6363
You can define the line spacing and its type for selected paragraphs using the following sample code.
6464

6565
```csharp
66+
// Set line spacing type
6667
await documentEditor.Selection.ParagraphFormat.SetLineSpacingTypeAsync(LineSpacingType.AtLeast);
67-
await documentEditor.Selection.ParagraphFormat.SetLineSpacingAsync(6);
68+
// Set line spacing value (supports both integer and float)
69+
await documentEditor.Selection.ParagraphFormat.SetLineSpacingAsync(6); // Integer value
70+
await documentEditor.Selection.ParagraphFormat.SetLineSpacingAsync(6.5); // Float value
6871
```
6972

7073
## Paragraph spacing

0 commit comments

Comments
 (0)