Class Paragraph
A layout element that represents a self-contained block of textual and graphical information.
public class Paragraph : BlockElement<Paragraph>, IAccessibleElement, IBlockElement, IAbstractElement, IElement, IPropertyContainer
- Inheritance
-
Paragraph
- Implements
- Inherited Members
Remarks
A layout element that represents a self-contained block of textual and graphical information. It is a BlockElement<T> which essentially acts as a container for leaf elements.
Constructors
Paragraph()
Creates a Paragraph.
public Paragraph()
Paragraph(string)
Creates a Paragraph, initialized with a piece of text.
public Paragraph(string text)
Parameters
Paragraph(Text)
Creates a Paragraph, initialized with a piece of text.
public Paragraph(Text text)
Parameters
Fields
tagProperties
protected DefaultAccessibilityProperties tagProperties
Field Value
Methods
Add(string)
Adds a piece of text to this Paragraph.
public virtual Paragraph Add(string text)
Parameters
Returns
Add(IBlockElement)
public virtual Paragraph Add(IBlockElement element)
Parameters
element
IBlockElementthe content to be added, any IBlockElement
Returns
Add(ILeafElement)
public virtual Paragraph Add(ILeafElement element)
Parameters
element
ILeafElementthe content to be added, any ILeafElement
Returns
AddAll<T2>(IList<T2>)
Adds a
public virtual Paragraph AddAll<T2>(IList<T2> elements) where T2 : ILeafElement
Parameters
elements
IList<T2>the content to be added
Returns
Type Parameters
T2
any ILeafElement
AddTabStops(IList<TabStop>)
Adds a
public virtual Paragraph AddTabStops(IList<TabStop> tabStops)
Parameters
Returns
- See Also
AddTabStops(params TabStop[])
Adds an unspecified amount of tabstop elements as properties to this Paragraph.
public virtual Paragraph AddTabStops(params TabStop[] tabStops)
Parameters
tabStops
TabStop[]the tabstop(s) to be added as properties
Returns
- See Also
GetAccessibilityProperties()
public override AccessibilityProperties GetAccessibilityProperties()
Returns
GetDefaultProperty<T1>(int)
public override T1 GetDefaultProperty<T1>(int property)
Parameters
property
int
Returns
- T1
Type Parameters
T1
MakeNewRenderer()
protected override IRenderer MakeNewRenderer()
Returns
RemoveTabStop(float)
Removes a tabstop position from the Paragraph, if it is present in the TAB_STOPS property.
public virtual Paragraph RemoveTabStop(float tabStopPosition)
Parameters
Returns
- Paragraph
this Paragraph
- See Also
SetFirstLineIndent(float)
Sets the indent value for the first line of the Paragraph.
public virtual Paragraph SetFirstLineIndent(float indent)
Parameters
indent
floatthe indent value that must be applied to the first line of the Paragraph, as a
float
Returns
- Paragraph
this Paragraph
SetFixedLeading(float)
Sets the leading value, using the FIXED strategy.
public virtual Paragraph SetFixedLeading(float leading)
Parameters
leading
floatthe new leading value
Returns
- Paragraph
this Paragraph
- See Also
SetMultipliedLeading(float)
Sets the leading value, using the MULTIPLIED strategy.
public virtual Paragraph SetMultipliedLeading(float leading)
Parameters
leading
floatthe new leading value
Returns
- Paragraph
this Paragraph
- See Also
SetOrphansControl(ParagraphOrphansControl)
Sets orphans restriction on a Paragraph.
public virtual Paragraph SetOrphansControl(ParagraphOrphansControl orphansControl)
Parameters
orphansControl
ParagraphOrphansControlan instance of ParagraphOrphansControl.
Returns
SetWidowsControl(ParagraphWidowsControl)
Sets widows restriction on a Paragraph.
public virtual Paragraph SetWidowsControl(ParagraphWidowsControl widowsControl)
Parameters
widowsControl
ParagraphWidowsControlan instance of ParagraphWidowsControl.