Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ this.documentEditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Ju
You can define the line spacing and its type for selected paragraphs using the following sample code.

```typescript
// Set line spacing type
this.documentEditor.selection.paragraphFormat.lineSpacingType='AtLeast';
this.documentEditor.selection.paragraphFormat.lineSpacing= 6;
// Set line spacing value (supports both integer and float)
this.documentEditor.selection.paragraphFormat.lineSpacing= 6; // Integer value
this.documentEditor.selection.paragraphFormat.lineSpacing= 6.5; // Float value
```

## Paragraph spacing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
You can define the line spacing and its type for selected paragraphs using the following sample code.

```typescript
// Set line spacing type
documenteditor.selection.paragraphFormat.lineSpacingType='AtLeast';
documenteditor.selection.paragraphFormat.lineSpacing= 6;
// Set line spacing value (supports both integer and float)
documenteditor.selection.paragraphFormat.lineSpacing= 6; // Integer value
documenteditor.selection.paragraphFormat.lineSpacing= 6.5; // Float value
```

## Paragraph spacing
Expand Down Expand Up @@ -149,7 +152,9 @@ documenteditor.documentEditorSettings.showHiddenMarks = true;
{% include code-snippet/document-editor/asp-net-core/paragraph-format/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Paragraph-format.cs" %}
{% endhighlight %}{% endtabs %}
{% include code-snippet/document-editor/asp-net-core/paragraph-format/document-editor.cs %}
{% endhighlight %}
{% endtabs %}


## See Also
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
You can define the line spacing and its type for selected paragraphs using the following sample code.

```typescript
// Set line spacing type
documenteditor.selection.paragraphFormat.lineSpacingType='AtLeast';
documenteditor.selection.paragraphFormat.lineSpacing= 6;
// Set line spacing value (supports both integer and float)
documenteditor.selection.paragraphFormat.lineSpacing= 6; // Integer value
documenteditor.selection.paragraphFormat.lineSpacing= 6.5; // Float value
```

## Paragraph spacing
Expand Down Expand Up @@ -149,7 +152,9 @@ documenteditor.documentEditorSettings.showHiddenMarks = true;
{% include code-snippet/document-editor/asp-net-mvc/paragraph-format/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Paragraph-format.cs" %}
{% endhighlight %}{% endtabs %}
{% include code-snippet/document-editor/asp-net-mvc/paragraph-format/document-editor.cs %}
{% endhighlight %}
{% endtabs %}



Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: Paragraph format in JavaScript (ES5) Document editor control
title: Paragraph format in JavaScript (ES5) Document editor | Syncfusion
description: Learn here all about Paragraph format in Syncfusion JavaScript (ES5) Document editor control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Paragraph format
Expand Down Expand Up @@ -74,8 +74,12 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
You can define the line spacing and its type for selected paragraphs using the following sample code.

```ts
// Set line spacing type
documenteditor.selection.paragraphFormat.lineSpacingType = 'AtLeast';
documenteditor.selection.paragraphFormat.lineSpacing = 6;
// Set line spacing value (supports both integer and float)
documenteditor.selection.paragraphFormat.lineSpacing = 6; // Integer value
documenteditor.selection.paragraphFormat.lineSpacing = 6.5; // Float value

```

## Paragraph spacing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: Paragraph format in JavaScript (ES6) Document editor control | Syncfusion
title: Paragraph format in JavaScript (ES6) Document editor | Syncfusion
description: Learn here all about Paragraph format in Syncfusion JavaScript (ES6) Document editor control of Syncfusion Essential JS 2 and more.
platform: document-processing
control: Paragraph format
Expand Down Expand Up @@ -74,8 +74,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
You can define the line spacing and its type for selected paragraphs using the following sample code.

```ts
// Set line spacing type
documenteditor.selection.paragraphFormat.lineSpacingType = 'AtLeast';
documenteditor.selection.paragraphFormat.lineSpacing = 6;
// Set line spacing value (supports both integer and float)
documenteditor.selection.paragraphFormat.lineSpacing = 6; // Integer value
documenteditor.selection.paragraphFormat.lineSpacing = 6.5; // Float value
```

## Paragraph spacing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ documenteditor.editor.toggleTextAlignment('Center' | 'Left' | 'Right' | 'Justify
You can define the line spacing and its type for selected paragraphs using the following sample code.

```ts
// Set line spacing type
documenteditor.selection.paragraphFormat.lineSpacingType='AtLeast';
documenteditor.selection.paragraphFormat.lineSpacing= 6;
// Set line spacing value (supports both integer and float)
documenteditor.selection.paragraphFormat.lineSpacing= 6; // Integer value
documenteditor.selection.paragraphFormat.lineSpacing= 6.5; // Float value
```

## Paragraph spacing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ You can define the line spacing and its type for selected paragraphs using the f
//Set line spacing type.
this.$refs.documenteditor.ej2Instances.selection.paragraphFormat.lineSpacingType='AtLeast';

//Set line spacing.
this.$refs.documenteditor.ej2Instances.selection.paragraphFormat.lineSpacing= 6;
// Set line spacing value (supports both integer and float)
this.$refs.documenteditor.ej2Instances.selection.paragraphFormat.lineSpacing= 6; // Integer value
this.$refs.documenteditor.ej2Instances.selection.paragraphFormat.lineSpacing= 6.5; // Float value
```

## Paragraph spacing
Expand Down