# PdfHorizontalRuleStyleFluent

The fluent methods of PdfHorizontalRuleStyle, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Modifiers**

static

The fluent methods of [PdfHorizontalRuleStyle](/api/pdf/officeimo-pdf-pdfhorizontalrulestyle/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- PdfHorizontalRuleStyleFluent

Filter members 

Show inherited

## Methods

`public static PdfHorizontalRuleStyle Color(PdfHorizontalRuleStyle pdfHorizontalRuleStyle, OfficeColor value)` [#](#method-color-officeimo-pdf-pdfhorizontalrulestyle-officeimo-officecolor)

Sets [PdfHorizontalRuleStyle.Color](/api/pdf/officeimo-pdf-pdfhorizontalrulestyle/): Rule stroke color.

Parameters

**pdfHorizontalRuleStyle OfficeIMO.Pdf.PdfHorizontalRuleStyle required**

The instance.

**value OfficeIMO.OfficeColor required**

The value.

Returns

`PdfHorizontalRuleStyle` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfHorizontalRuleStyle { Color = value };    pdfHorizontalRuleStyle.Color(value);
```

`public static PdfHorizontalRuleStyle KeepWithNext(PdfHorizontalRuleStyle pdfHorizontalRuleStyle, bool value = true)` [#](#method-keepwithnext-officeimo-pdf-pdfhorizontalrulestyle-boolean)

Sets [PdfHorizontalRuleStyle.KeepWithNext](/api/pdf/officeimo-pdf-pdfhorizontalrulestyle/): When true, the rule moves to the next page when it would otherwise be separated from the following flow block.

Parameters

**pdfHorizontalRuleStyle OfficeIMO.Pdf.PdfHorizontalRuleStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfHorizontalRuleStyle` The same instance.

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Pdf.PdfHorizontalRuleStyle { KeepWithNext = value };    pdfHorizontalRuleStyle.KeepWithNext(value);
```

`public static PdfHorizontalRuleStyle SpacingAfter(PdfHorizontalRuleStyle pdfHorizontalRuleStyle, OfficeLength value)` [#](#method-spacingafter-officeimo-pdf-pdfhorizontalrulestyle-officeimo-officelength)

Sets [PdfHorizontalRuleStyle.SpacingAfter](/api/pdf/officeimo-pdf-pdfhorizontalrulestyle/): Vertical space after the rule in the surrounding document flow, in points.

Parameters

**pdfHorizontalRuleStyle OfficeIMO.Pdf.PdfHorizontalRuleStyle required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfHorizontalRuleStyle` The same instance.

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Pdf.PdfHorizontalRuleStyle { SpacingAfter = value };    pdfHorizontalRuleStyle.SpacingAfter(value);
```

`public static PdfHorizontalRuleStyle SpacingBefore(PdfHorizontalRuleStyle pdfHorizontalRuleStyle, OfficeLength value)` [#](#method-spacingbefore-officeimo-pdf-pdfhorizontalrulestyle-officeimo-officelength)

Sets [PdfHorizontalRuleStyle.SpacingBefore](/api/pdf/officeimo-pdf-pdfhorizontalrulestyle/): Vertical space before the rule in the surrounding document flow, in points.

Parameters

**pdfHorizontalRuleStyle OfficeIMO.Pdf.PdfHorizontalRuleStyle required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfHorizontalRuleStyle` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Pdf.PdfHorizontalRuleStyle { SpacingBefore = value };    pdfHorizontalRuleStyle.SpacingBefore(value);
```

`public static PdfHorizontalRuleStyle Thickness(PdfHorizontalRuleStyle pdfHorizontalRuleStyle, OfficeLength value)` [#](#method-thickness-officeimo-pdf-pdfhorizontalrulestyle-officeimo-officelength)

Sets [PdfHorizontalRuleStyle.Thickness](/api/pdf/officeimo-pdf-pdfhorizontalrulestyle/): Rule thickness in points.

Parameters

**pdfHorizontalRuleStyle OfficeIMO.Pdf.PdfHorizontalRuleStyle required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfHorizontalRuleStyle` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Pdf.PdfHorizontalRuleStyle { Thickness = value };    pdfHorizontalRuleStyle.Thickness(value);
```

## 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?`

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