Back to Devexpress

ParagraphBorders.HorizontalBorder Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphborders-04b1d44c.md

latest4.4 KB
Original Source

ParagraphBorders.HorizontalBorder Property

Obtains horizontal border (border between paragraphs) settings.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
ParagraphBorder HorizontalBorder { get; }
vb
ReadOnly Property HorizontalBorder As ParagraphBorder

Property Value

TypeDescription
ParagraphBorder

An object that contains horizontal border settings.

|

Remarks

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

csharp
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

csharp
ParagraphProperties pp = document.BeginUpdateParagraphs(paragraphRange);
BorderHelper.SetBorder(pp.Borders.HorizontalBorder);
BorderHelper.SetBorder(pp.Borders.BottomBorder);

word-document-api-examples/CS/CodeExamples/FormattingActions.cs#L187

csharp
ParagraphProperties pp = document.BeginUpdateParagraphs(paragraphRange);
SetBorder(pp.Borders.HorizontalBorder);
SetBorder(pp.Borders.BottomBorder);

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

vb
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

vb
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

ParagraphBorders Interface

ParagraphBorders Members

DevExpress.XtraRichEdit.API.Native Namespace