Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfInlineRule

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision 64571f1a8ff6 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(Double height, PdfColor color, Double? maximumWidth = null, Double baselineOffset = 0) #

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

Parameters

height System.Double requiredposition: 0
color OfficeIMO.Pdf.PdfColor requiredposition: 1
maximumWidth System.Double? = null optionalposition: 2
baselineOffset System.Double = 0 optionalposition: 3

Properties

public PdfColor Color { get; } #

Color of the rule's filled band.

public Double? MaximumWidth { get; } #

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