Back to Devexpress

ParagraphPropertiesBase.SpacingBefore Property

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

latest3.3 KB
Original Source

ParagraphPropertiesBase.SpacingBefore Property

Gets or sets the spacing before a paragraph.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

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

Property Value

TypeDescription
Nullable<Single>

The spacing before the paragraph measured in Document.Unit units, or null ( Nothing in Visual Basic), for a mixture of paragraphs with different spacings.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SpacingBefore 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#L102

csharp
chapterStyle.Alignment = ParagraphAlignment.Left;
chapterStyle.SpacingBefore = Units.InchesToDocumentsF(0.2f);
chapterStyle.SpacingAfter = Units.InchesToDocumentsF(0.2f);

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

vb
chapterStyle.Alignment = ParagraphAlignment.Left
chapterStyle.SpacingBefore = Units.InchesToDocumentsF(0.2F)
chapterStyle.SpacingAfter = Units.InchesToDocumentsF(0.2F)

See Also

SpacingAfter

Unit

BeginUpdateParagraphs(DocumentRange)

EndUpdateParagraphs(ParagraphProperties)

ParagraphPropertiesBase Interface

ParagraphPropertiesBase Members

DevExpress.XtraRichEdit.API.Native Namespace