Class ParagraphFormat
- Namespace
- MigraDoc.DocumentObjectModel
- Assembly
- MigraDoc.DocumentObjectModel.dll
A ParagraphFormat represents the formatting of a paragraph.
public class ParagraphFormat : DocumentObject
- Inheritance
-
objectParagraphFormat
- Inherited Members
- Extension Methods
Constructors
- ParagraphFormat()
Initializes a new instance of the ParagraphFormat class that can be used as a template.
Properties
- Alignment
Gets or sets the Alignment of the paragraph.
- Borders
Gets the Borders object.
- DefinesTabStops
Indicates whether the ParagraphFormat defines TabStops in its TabStops collection.
- FirstLineIndent
Gets or sets the indent of the first line in the paragraph.
- Font
Gets or sets the Font object.
- HasTabStops
Indicates whether the ParagraphFormat has a TabStops collection.
- KeepTogether
Gets or sets a value indicating whether to keep all the paragraph’s lines on the same page.
- KeepWithNext
Gets or sets a value indicating whether this and the next paragraph stay on the same page.
- LeftIndent
Gets or sets the left indent of the paragraph.
- LineSpacing
Gets or sets the space between lines on the paragraph.
- LineSpacingRule
Gets or sets the rule which is used to define the line spacing.
- ListInfo
Gets or sets the ListInfo object of the paragraph.
- OutlineLevel
Gets or sets the outline level of the paragraph.
- PageBreakBefore
Gets or sets a value indicating whether a page break is inserted before the paragraph.
- RightIndent
Gets or sets the right indent of the paragraph.
- Shading
Gets the shading object.
- SpaceAfter
Gets or sets the space that’s inserted after the paragraph.
- SpaceBefore
Gets or sets the space that’s inserted before the paragraph.
- TabStops
Get the TabStops collection.
- Values
Gets the underlying internal nullable values for the properties of this document object.
- WidowControl
Gets or sets a value indicating whether a line from the paragraph stays alone in a page.
Methods
- Add(TabStop)
Adds a TabStop object to the collection.
- AddTabStop(Unit)
Adds a TabStop object to the collection.
- AddTabStop(Unit, TabAlignment)
Adds a TabStop object to the collection and sets its alignment.
- AddTabStop(Unit, TabAlignment, TabLeader)
Adds a TabStop object to the collection and sets its alignment and leader.
- AddTabStop(Unit, TabLeader)
Adds a TabStop object to the collection and sets its leader.
- ClearAll()
Clears all TapStop objects from the collection. Additionally, 'TabStops = null' is written to the DDL stream when serialized.
- Clone()
Creates a deep copy of this object.
- DeepCopy()
Implements the deep copy of the object.
- RemoveTabStop(Unit)
Adds a TabStop object to the collection marked to remove the tab stop at the given position.