Namespace TallComponents.PDF.Layout.Paragraphs
Class Paragraph
The paragraph class is the base class for a number of specialized classes.
A paragraph is part of exactly one section. Specializations are TextParagraph, Table, Image and Drawing. These classes may be further specialized. The following applies to all special paragraphs.
An empty paragraph will not render anything, not even SpacingBefore and SpacingAfter.
Syntax
public class Paragraph : Bordered
Properties
ActionCollection Actions
The actions that will be executed when the paragraph is clicked.
String Caption
This attribute can be referenced using the #c field.
Boolean DoNotBreak
Get or set if a paragraph may be broken on page edges.
HorizontalAlignment HorizontalAlignment
Get or set the horizontal alignment of the paragraph.
String ID
Get or set the ID for referencing the paragraph.
Boolean KeepWithNext
Get or set if the next paragraph needs start on the same page.
String Label
Get or set the label for this paragraph.
Double LeftIndentation
Get or set the left side indent for this paragraph.
Note Note
Get or set the note to be inserted.
Double RightIndentation
Get or set the right side indent for this paragraph.
Double SpacingAfter
Get or set the number of added user space units below the rendered paragraph.
Double SpacingBefore
Get or set the number of added user space units above the rendered paragraph.
Boolean StartOnNewColumn
Get or set if the paragraph needs to start on a new column.
Boolean StartOnNewPage
Get or set if the paragraph needs to start on a new page.
Methods
Bordered Clone()
Clones a Paragraph.
Void Compose(Document)
Implement this method in a derived class to generate content
dynamically.
String Replace(String)
For internal use only
Events
BreakParagraph
Occurs when a paragraph is broken across pages.
RollbackParagraph
Occurs when a paragraph is rolled back due to a text flow constraint.
EndParagraph
Occurs when a paragraph ends.
ContinueParagraph
Occurs when a paragraph continues.
TransformParagraph
Occurs when a paragraph is transformed e.g. due to vertical alignment.