API Reference
PdfParagraphStyle
Describes layout options for rich paragraph rendering.
Inheritance
- Object
- PdfParagraphStyle
Usage
Explore 6 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 3
- Property PdfOptions.DefaultParagraphStyle
- Method PdfParagraphStyle.Clone
- Property PdfTheme.ParagraphStyle
Accepted by parameters 3
- Method PdfContentBuilder.Paragraph
- Method PdfContentBuilder.Text
- Method PdfPageBuilder.DefaultParagraphStyle
Constructors
public PdfParagraphStyle() #Methods
public PdfTabStop AddTabStop(Double position, PdfTabAlignment alignment = Left, PdfTabLeaderStyle leader = None) #PdfTabStopAdds an explicit paragraph tab stop.
Parameters
- position System.Double
- Tab stop position in points relative to the paragraph text frame.
- alignment OfficeIMO.Pdf.PdfTabAlignment = Left
- Text alignment anchored at this tab stop.
- leader OfficeIMO.Pdf.PdfTabLeaderStyle = None
- Leader fill rendered before the following text.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public Double? FontSize { get; set; } #Fallback font size and empty-line font size in points. When null the writer uses the current default font size.
public PdfLineSpacing? LineSpacing { get; set; } #Explicit line spacing. When set, this overrides PdfParagraphStyle.LineHeight.
public Double? LineHeight { get; set; } #Line advance multiplier relative to the paragraph font size. Used when PdfParagraphStyle.LineSpacing is null. When null the writer uses the default line height.
public Double LeftIndent { get; set; } #Horizontal offset from the left edge of the paragraph frame, in points. Negative values extend text into the left margin.
public Double RightIndent { get; set; } #Horizontal offset from the right edge of the paragraph frame, in points. Negative values extend text into the right margin.
public Double FirstLineIndent { get; set; } #Additional indent for the first line, in points. Negative values create a hanging indent relative to PdfParagraphStyle.LeftIndent.
public Double SpacingBefore { get; set; } #Vertical space before the paragraph, in points.
public Double? SpacingAfter { get; set; } #Vertical space after the paragraph, in points. When null the writer uses the default paragraph spacing.
public Double? DefaultTabStopWidth { get; set; } #Default paragraph tab-stop width, in points. When null the writer uses the Word-compatible half-inch default.
public IList<PdfTabStop> TabStops { get; } #Explicit paragraph tab stops, in points, relative to the paragraph text frame.
public PdfTextWhitespaceMode? TextWhitespaceMode { get; set; } #Overrides document whitespace handling for this paragraph. Null uses the document setting.
public Boolean KeepTogether { get; set; } #When true, the paragraph starts on a new page instead of splitting across pages.
public Boolean KeepWithNext { get; set; } #When true, the paragraph moves to the next page when it would otherwise be separated from the following paragraph.
public Boolean WidowControl { get; set; } #When true, paragraph page splits avoid single-line widows and orphans where the page frame allows it.
public Int32 MinimumOrphanLines { get; set; } #Minimum number of paragraph lines kept at the bottom of a page when the paragraph splits. Zero uses the two-line default when PdfParagraphStyle.WidowControl is enabled, or disables this constraint otherwise.
public Int32 MinimumWidowLines { get; set; } #Minimum number of paragraph lines carried to the top of the following page when the paragraph splits. Zero uses the two-line default when PdfParagraphStyle.WidowControl is enabled, or disables this constraint otherwise.