ParagraphPropertiesBase.LineSpacingType Property
Gets or sets the spacing type between a paragraph’s lines.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.1.Core.dll
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation
Declaration
Property Value
Type | Description |
---|---|
Nullable<ParagraphLineSpacing> | Indicates the line spacing type. |
Available values:
Name | Description |
---|---|
Single | This option accommodates the largest font in that line, plus a small amount of extra space. The amount of extra space varies depending on the font that is used. |
Sesquialteral | This option is one-and-one-half times that of single line spacing. |
Double | This option is twice that of single line spacing. |
Multiple | This option sets line spacing that can be expressed in numbers greater than 1. For example, setting line spacing to 1.15 will increase the space by 15 percent, and setting line spacing to 3 increases the space by 300 percent (triple spacing). The multiplication value is specified by the Paragraph.LineSpacingMultiplier property. |
Exactly | This option sets fixed line spacing, specified by the Paragraph.LineSpacing property. |
AtLeast | The line spacing can be greater than or equal to, but never less than, the specified Paragraph.LineSpacing value. |
Remarks
If the LineSpacingType property is set to ParagraphLineSpacing.Single, ParagraphLineSpacing.Sesquialteral or ParagraphLineSpacing.Double, the line spacing value is determined automatically, according to the height of the text in each line.
If the LineSpacingType property is set to ParagraphLineSpacing.Exactly or ParagraphLineSpacing.AtLeast, the line spacing is determined by the LineSpacing property.
If the LineSpacingType property is set to ParagraphLineSpacing.Multiple, the line spacing is determined by the LineSpacingMultiplier property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the LineSpacingType 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.