Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfInlineRule

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
22fb5b2be3d2 with working tree changes
Modifiers
sealed

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

Inheritance

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.

Constructors

public PdfInlineRule(OfficeLength height, OfficeColor color, OfficeLength? maximumWidth = null, OfficeLength baselineOffset = default) #

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

Properties

public OfficeColor Color { get; } #

Color of the rule's filled band.

public OfficeLength? MaximumWidth { get; } #

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