# PdfHorizontalRuleStyle

Reusable horizontal rule appearance and rhythm style.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfHorizontalRuleStyle.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHorizontalRuleStyle.cs#L7)

**Modifiers**

sealed

Reusable horizontal rule appearance and rhythm style.

## Inheritance

- object
- PdfHorizontalRuleStyle

## Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Property [PdfCreateOptions.DefaultHorizontalRuleStyle](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-defaulthorizontalrulestyle)
- Method [PdfHorizontalRuleStyle.Clone](/api/pdf/officeimo-pdf-pdfhorizontalrulestyle/#method-clone)
- Property [PdfTheme.HorizontalRuleStyle](/api/pdf/officeimo-pdf-pdftheme/#property-horizontalrulestyle)

### Accepted by parameters 2

- Method [PdfContentBuilder.HR](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-hr-nullable-officeimo-officelength-nullable-officeimo-officecolor-nullable-officeimo-officelength-nullable-officeimo-officelength-officeimo-pdf-pdfhorizontalrulestyle) parameter `style`
- Method [PdfPageBuilder.DefaultHorizontalRuleStyle](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-defaulthorizontalrulestyle-officeimo-pdf-pdfhorizontalrulestyle) parameter `style`

Filter members 

Show inherited

## Constructors

`public PdfHorizontalRuleStyle()` [#](#constructor-ctor)

[PdfHorizontalRuleStyle.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHorizontalRuleStyle.cs#L7)

## Methods

`public PdfHorizontalRuleStyle Clone()` [#](#method-clone)

[PdfHorizontalRuleStyle.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHorizontalRuleStyle.cs#L46)

Creates a copy of this horizontal rule style.

Returns

`PdfHorizontalRuleStyle`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeLength Thickness { get; set; }` [#](#property-thickness)

[PdfHorizontalRuleStyle.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHorizontalRuleStyle.cs#L13)

Rule thickness in points.

`public OfficeColor Color { get; set; }` [#](#property-color)

[PdfHorizontalRuleStyle.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHorizontalRuleStyle.cs#L21)

Rule stroke color.

`public OfficeLength SpacingBefore { get; set; }` [#](#property-spacingbefore)

[PdfHorizontalRuleStyle.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHorizontalRuleStyle.cs#L25)

Vertical space before the rule in the surrounding document flow, in points.

`public OfficeLength SpacingAfter { get; set; }` [#](#property-spacingafter)

[PdfHorizontalRuleStyle.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHorizontalRuleStyle.cs#L34)

Vertical space after the rule in the surrounding document flow, in points.

`public bool KeepWithNext { get; set; }` [#](#property-keepwithnext)

[PdfHorizontalRuleStyle.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHorizontalRuleStyle.cs#L42)

When true, the rule moves to the next page when it would otherwise be separated from the following flow block.

<!-- PowerForge markdown artifact sha256:FF2C3D061F14DFB0731CA79737B7D0B4B265B18B4D3DD70769E91AF1DE3BA47E -->
