Back to Devexpress

Paragraph.LineSpacing Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraph-78027922.md

latest3.0 KB
Original Source

Paragraph.LineSpacing Property

Gets or sets a line spacing value.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public abstract float LineSpacing { get; set; }
vb
Public MustOverride Property LineSpacing As Single

Property Value

TypeDescription
Single

A Single value representing line spacing, measured in Document.Unit units.

|

Remarks

The LineSpacing property is used when the Paragraph.LineSpacingType property is set to either the ParagraphLineSpacing.Exactly or ParagraphLineSpacing.AtLeast values.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LineSpacing property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

word-document-api-insert-dynamic-content/CS/Program.cs#L73

csharp
Paragraph paragraph = document.Paragraphs.Append();
paragraph.LineSpacing = 1f;
paragraph.ListIndex = 0;

word-document-api-insert-dynamic-content/VB/Module1.vb#L61

vb
Dim paragraph As Paragraph = document.Paragraphs.Append()
paragraph.LineSpacing = 1.0F
paragraph.ListIndex = 0

See Also

LineSpacingMultiplier

Paragraph Class

Paragraph Members

DevExpress.XtraRichEdit.API.Native Namespace