API Reference
PdfElementBuilder
Configures a visual and semantic envelope around a sequence of PDF flow content.
Inheritance
- Object
- PdfElementBuilder
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- 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.Padding
- Method PdfElementBuilder.Semantic
- Method PdfElementBuilder.Spacing
- Method PdfElementBuilder.Style
Accepted by parameters
- Method PdfContentBuilder.Element
Methods
public PdfElementBuilder Align(PdfAlign align) #PdfElementBuilderAligns a constrained element within the available content width.
Parameters
- align OfficeIMO.Pdf.PdfAlign
public PdfElementBuilder Background(PdfColor color) #PdfElementBuilderSets the element background fill.
Parameters
- color OfficeIMO.Pdf.PdfColor
public PdfElementBuilder Border(PdfColor color, Double width = 1) #PdfElementBuilderSets a uniform border around the element.
Parameters
- color OfficeIMO.Pdf.PdfColor
- width System.Double = 1
public PdfElementBuilder Content(Action<PdfContentBuilder> build) #PdfElementBuilderSets the content rendered inside this element.
Parameters
- build System.Action{OfficeIMO.Pdf.PdfContentBuilder}
public PdfElementBuilder KeepTogether(Boolean value = true) #PdfElementBuilderControls whether the entire decorated element must remain on one page.
Parameters
- value System.Boolean = true
public PdfElementBuilder KeepWithNext(Boolean value = true) #PdfElementBuilderControls whether this element should stay with the next flow block.
Parameters
- value System.Boolean = true
public PdfElementBuilder MaxWidth(Double value) #PdfElementBuilderConstrains the element to a maximum width, in points.
Parameters
- value System.Double
public PdfElementBuilder Padding(Double value) #PdfElementBuilderSets equal padding on every side, in points.
Parameters
- value System.Double
public PdfElementBuilder Padding(Double vertical, Double horizontal) #PdfElementBuilderSets vertical and horizontal padding, in points.
Parameters
- vertical System.Double
- horizontal System.Double
public PdfElementBuilder Semantic(PdfSemanticRole role, String alternativeText = null) #PdfElementBuilderAssigns an explicit tagged-PDF semantic role to the element.
Parameters
- role OfficeIMO.Pdf.PdfSemanticRole
- alternativeText System.String = null
public PdfElementBuilder Spacing(Double before = 0, Double after = 0) #PdfElementBuilderSets the outer vertical spacing before and after the element, in points.
Parameters
- before System.Double = 0
- after System.Double = 0
public PdfElementBuilder Style(PdfPanelStyle style) #PdfElementBuilderApplies a reusable visual style. The style is copied when assigned.
Parameters
- style OfficeIMO.Pdf.PdfPanelStyle