Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfElementBuilder

OfficeIMO.Pdf

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

Configures a visual and semantic envelope around a sequence of PDF flow content.

Inheritance

  • object
  • PdfElementBuilder

Usage

Explore 12 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.

Accepted by parameters 1

Methods

public PdfElementBuilder Align(OfficeAlignment align) #

Aligns a constrained element within the available content width.

Parameters

align OfficeIMO.OfficeAlignment required
public PdfElementBuilder Background(OfficeColor color) #

Sets the element background fill.

Parameters

color OfficeIMO.OfficeColor required
public PdfElementBuilder Border(OfficeColor color, OfficeLength? width = null) #

Sets a uniform border around the element.

Parameters

color OfficeIMO.OfficeColor required
width OfficeIMO.OfficeLength? = null optional
public PdfElementBuilder Content(Action<PdfContentBuilder> build) #

Sets the content rendered inside this element.

Parameters

build System.Action<OfficeIMO.Pdf.PdfContentBuilder> required
public PdfElementBuilder KeepTogether(bool value = true) #

Controls whether the entire decorated element must remain on one page.

Parameters

value bool = true optional
public PdfElementBuilder KeepWithNext(bool value = true) #

Controls whether this element should stay with the next flow block.

Parameters

value bool = true optional
public PdfElementBuilder MaxWidth(OfficeLength value) #

Constrains the element to a maximum width, in points.

Parameters

value OfficeIMO.OfficeLength required
Padding 2 overloads
public PdfElementBuilder Padding(OfficeLength value) #

Sets equal padding on every side, in points.

Parameters

value OfficeIMO.OfficeLength required
public PdfElementBuilder Padding(OfficeLength vertical, OfficeLength horizontal) #

Sets vertical and horizontal padding, in points.

Parameters

vertical OfficeIMO.OfficeLength required
horizontal OfficeIMO.OfficeLength required
public PdfElementBuilder Semantic(PdfSemanticRole role, string? alternativeText = null) #

Assigns an explicit tagged-PDF semantic role to the element.

Parameters

role OfficeIMO.Pdf.PdfSemanticRole required
alternativeText string? = null optional
public PdfElementBuilder Spacing(OfficeLength before = default, OfficeLength after = default) #

Sets the outer vertical spacing before and after the element, in points.

Parameters

before OfficeIMO.OfficeLength = default optional
after OfficeIMO.OfficeLength = default optional
public PdfElementBuilder Style(PdfPanelStyle style) #

Applies a reusable visual style. The style is copied when assigned.

Parameters

style OfficeIMO.Pdf.PdfPanelStyle required