Back to Devexpress

ParagraphPropertiesBase.LineSpacingMultiplier Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphpropertiesbase-4b4f14f4.md

latest5.5 KB
Original Source

ParagraphPropertiesBase.LineSpacingMultiplier Property

Gets or sets the multiplier used to calculate the line spacing value.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
float? LineSpacingMultiplier { get; set; }
vb
Property LineSpacingMultiplier As Single?

Property Value

TypeDescription
Nullable<Single>

Line spacing multiplier or null ( Nothing in Visual Basic), for a mixture of paragraphs with different line spacings.

|

Remarks

The LineSpacingMultiplier property is used when the LineSpacingType property is set to ParagraphLineSpacing.Multiple.

The following code snippets (auto-collected from DevExpress Examples) contain references to the LineSpacingMultiplier 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.

winforms-rich-edit-text-formatting/CS/Text Formatting Example/Form1.cs#L137

csharp
annotationStyle.Alignment = ParagraphAlignment.Right;
annotationStyle.LineSpacingMultiplier = 1.5f;
annotationStyle.FirstLineIndentType = ParagraphFirstLineIndent.Hanging;

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Formatting.cs#L66

csharp
pp.LineSpacingType = ParagraphLineSpacing.Multiple;
pp.LineSpacingMultiplier = 3;
// Set left indent at 0.5".

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/FormattingActions.cs#L53

csharp
pp.LineSpacingType = ParagraphLineSpacing.Multiple;
pp.LineSpacingMultiplier = 3;
// Set left indent at 0.5".

winforms-rich-edit-text-formatting/VB/Text Formatting Example/Form1.vb#L129

vb
annotationStyle.Alignment = ParagraphAlignment.Right
annotationStyle.LineSpacingMultiplier = 1.5F
annotationStyle.FirstLineIndentType = ParagraphFirstLineIndent.Hanging

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Formatting.vb#L59

vb
pp.LineSpacingType = DevExpress.XtraRichEdit.API.Native.ParagraphLineSpacing.Multiple
pp.LineSpacingMultiplier = 3
' Set left indent at 0.5".

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/FormattingActions.vb#L48

vb
pp.LineSpacingType = ParagraphLineSpacing.Multiple
pp.LineSpacingMultiplier = 3
' Set left indent at 0.5".

word-document-api-examples/VB/CodeExamples/FormattingActions.vb#L106

vb
pp.LineSpacingType = DevExpress.XtraRichEdit.API.Native.ParagraphLineSpacing.Multiple
pp.LineSpacingMultiplier = 3
' Set the paragraph’s left indent to 0.5 document unit.

See Also

LineSpacing

BeginUpdateParagraphs(DocumentRange)

EndUpdateParagraphs(ParagraphProperties)

ParagraphPropertiesBase Interface

ParagraphPropertiesBase Members

DevExpress.XtraRichEdit.API.Native Namespace