PdfElementBuilder
OfficeIMO.Pdf
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.
Returned or exposed by 11
- Method PdfElementBuilder.Align
- Method PdfElementBuilder.Background
- Method PdfElementBuilder.Border
- Method PdfElementBuilder.Content
- Method PdfElementBuilder.KeepTogether
- Method PdfElementBuilder.KeepWithNext
- Method PdfElementBuilder.MaxWidth
- Method PdfElementBuilder.Padding
- Method PdfElementBuilder.Semantic
- Method PdfElementBuilder.Spacing
- Method PdfElementBuilder.Style
Accepted by parameters 1
- Method PdfContentBuilder.Element
Methods
public PdfElementBuilder Align(OfficeAlignment align) #Aligns a constrained element within the available content width.
Parameters
- align OfficeIMO.OfficeAlignment
Returns
PdfElementBuilderpublic PdfElementBuilder Background(OfficeColor color) #Sets the element background fill.
Parameters
- color OfficeIMO.OfficeColor
Returns
PdfElementBuilderpublic PdfElementBuilder Border(OfficeColor color, OfficeLength? width = null) #Sets a uniform border around the element.
Parameters
- color OfficeIMO.OfficeColor
- width OfficeIMO.OfficeLength? = null
Returns
PdfElementBuilderpublic PdfElementBuilder Content(Action<PdfContentBuilder> build) #Sets the content rendered inside this element.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
Returns
PdfElementBuilderpublic PdfElementBuilder KeepTogether(bool value = true) #Controls whether the entire decorated element must remain on one page.
Parameters
- value bool = true
Returns
PdfElementBuilderpublic PdfElementBuilder KeepWithNext(bool value = true) #Controls whether this element should stay with the next flow block.
Parameters
- value bool = true
Returns
PdfElementBuilderpublic PdfElementBuilder MaxWidth(OfficeLength value) #Constrains the element to a maximum width, in points.
Parameters
- value OfficeIMO.OfficeLength
Returns
PdfElementBuilderpublic PdfElementBuilder Padding(OfficeLength value) #Sets equal padding on every side, in points.
Parameters
- value OfficeIMO.OfficeLength
Returns
PdfElementBuilderpublic PdfElementBuilder Padding(OfficeLength vertical, OfficeLength horizontal) #Sets vertical and horizontal padding, in points.
Parameters
- vertical OfficeIMO.OfficeLength
- horizontal OfficeIMO.OfficeLength
Returns
PdfElementBuilderpublic PdfElementBuilder Semantic(PdfSemanticRole role, string? alternativeText = null) #Assigns an explicit tagged-PDF semantic role to the element.
Parameters
- role OfficeIMO.Pdf.PdfSemanticRole
- alternativeText string? = null
Returns
PdfElementBuilderpublic 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
- after OfficeIMO.OfficeLength = default
Returns
PdfElementBuilderpublic PdfElementBuilder Style(PdfPanelStyle style) #Applies a reusable visual style. The style is copied when assigned.
Parameters
- style OfficeIMO.Pdf.PdfPanelStyle
Returns
PdfElementBuilder