officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphborders-04b1d44c.md
Obtains horizontal border (border between paragraphs) settings.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
ParagraphBorder HorizontalBorder { get; }
ReadOnly Property HorizontalBorder As ParagraphBorder
| Type | Description |
|---|---|
| ParagraphBorder |
An object that contains horizontal border settings.
|
Set these border options when you change settings of multiple paragraphs (if you pass a range that contains two or more paragraphs as the SubDocument.BeginUpdateParagraphs(DocumentRange) method parameter).
The following code snippets (auto-collected from DevExpress Examples) contain references to the HorizontalBorder 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.
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/FormattingActions.cs#L101
ParagraphProperties pp = document.BeginUpdateParagraphs(paragraphRange);
BorderHelper.SetBorder(pp.Borders.HorizontalBorder);
BorderHelper.SetBorder(pp.Borders.BottomBorder);
winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Formatting.cs#L118
ParagraphProperties pp = document.BeginUpdateParagraphs(paragraphRange);
BorderHelper.SetBorder(pp.Borders.HorizontalBorder);
BorderHelper.SetBorder(pp.Borders.BottomBorder);
word-document-api-examples/CS/CodeExamples/FormattingActions.cs#L187
ParagraphProperties pp = document.BeginUpdateParagraphs(paragraphRange);
SetBorder(pp.Borders.HorizontalBorder);
SetBorder(pp.Borders.BottomBorder);
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/FormattingActions.vb#L92
Dim pp As ParagraphProperties = document.BeginUpdateParagraphs(paragraphRange)
BorderHelper.SetBorder(pp.Borders.HorizontalBorder)
BorderHelper.SetBorder(pp.Borders.BottomBorder)
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Formatting.vb#L102
Dim pp As DevExpress.XtraRichEdit.API.Native.ParagraphProperties = document.BeginUpdateParagraphs(paragraphRange)
Call RichEditAPISample.CodeExamples.FormattingActions.BorderHelper.SetBorder(pp.Borders.HorizontalBorder)
Call RichEditAPISample.CodeExamples.FormattingActions.BorderHelper.SetBorder(pp.Borders.BottomBorder)
See Also