# PdfInlineRule

Horizontal ink band that fills the remaining rich-text line, optionally limited to a maximum width.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[PdfInlineRule.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfInlineRule.cs#L38)

**Base**

`PdfInlineElement`

**Modifiers**

sealed

Horizontal ink band that fills the remaining rich-text line, optionally limited to a maximum width.

## Inheritance

- [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)
- PdfInlineRule

## Remarks

The rule has zero intrinsic width. Each layout resolves a fresh band against its actual remaining frame, preserving the source run's font line metrics. Text following a rule wraps normally when the rule consumes the line.

Filter members 

Show inherited

## Constructors

`public PdfInlineRule(OfficeLength height, OfficeColor color, OfficeLength? maximumWidth = null, OfficeLength baselineOffset = default)` [#](#constructor-ctor-officeimo-officelength-officeimo-officecolor-nullable-officeimo-officelength-officeimo-officelength)

[PdfInlineRule.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfInlineRule.cs#L38)

Creates a flexible inline rule with explicit band height and baseline offset, in points.

Parameters

**height OfficeIMO.OfficeLength required**

**color OfficeIMO.OfficeColor required**

**maximumWidth OfficeIMO.OfficeLength? = null optional**

**baselineOffset OfficeIMO.OfficeLength = default optional**

## 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 OfficeColor Color { get; }` [#](#property-color)

[PdfInlineRule.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfInlineRule.cs#L31)

Color of the rule's filled band.

`public OfficeLength? MaximumWidth { get; }` [#](#property-maximumwidth)

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

Optional positive maximum width in points. Null fills all remaining line width.

## Inherited Properties

`public OfficeLength Width { get; }` [#](#property-width)

[PdfInlineElement.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L10)

Inherited from [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)

`public OfficeLength Height { get; }` [#](#property-height)

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

Inherited from [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)

`public OfficeLength BaselineOffset { get; }` [#](#property-baselineoffset)

[PdfInlineElement.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L16)

Inherited from [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)

`public string? AltText { get; }` [#](#property-alttext)

[PdfInlineElement.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfInlineElement.cs#L19)

Inherited from [PdfInlineElement](/api/pdf/officeimo-pdf-pdfinlineelement/)

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