Table of Contents

Class Paragraph

Namespace
iText.Layout.Element
Assembly
itext.layout.dll

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

text string

the initial textual content, as a string

Paragraph(Text)

Creates a Paragraph, initialized with a piece of text.

public Paragraph(Text text)

Parameters

text Text

the initial textual content, as a Text

Fields

tagProperties

protected DefaultAccessibilityProperties tagProperties

Field Value

DefaultAccessibilityProperties

Methods

Add(string)

Adds a piece of text to this Paragraph.

public virtual Paragraph Add(string text)

Parameters

text string

the content to be added, as a string

Returns

Paragraph

this Paragraph

Add(IBlockElement)

Adds an element to this Paragraph.

public virtual Paragraph Add(IBlockElement element)

Parameters

element IBlockElement

the content to be added, any IBlockElement

Returns

Paragraph

this Paragraph

Add(ILeafElement)

Adds a element to this Paragraph.

public virtual Paragraph Add(ILeafElement element)

Parameters

element ILeafElement

the content to be added, any ILeafElement

Returns

Paragraph

this Paragraph

AddAll<T2>(IList<T2>)

Adds a of layout elements to this Paragraph.

public virtual Paragraph AddAll<T2>(IList<T2> elements) where T2 : ILeafElement

Parameters

elements IList<T2>

the content to be added

Returns

Paragraph

this Paragraph

Type Parameters

T2

any ILeafElement

AddTabStops(IList<TabStop>)

Adds a of tabstop elements as properties to this Paragraph.

public virtual Paragraph AddTabStops(IList<TabStop> tabStops)

Parameters

tabStops IList<TabStop>

the list of TabStop s to be added as properties

Returns

Paragraph

this Paragraph

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

Paragraph

this Paragraph

See Also

GetAccessibilityProperties()

public override AccessibilityProperties GetAccessibilityProperties()

Returns

AccessibilityProperties

GetDefaultProperty<T1>(int)

public override T1 GetDefaultProperty<T1>(int property)

Parameters

property int

Returns

T1

Type Parameters

T1

MakeNewRenderer()

protected override IRenderer MakeNewRenderer()

Returns

IRenderer

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

tabStopPosition float

the TabStop position to be removed.

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 float

the 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 float

the 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 float

the 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 ParagraphOrphansControl

an instance of ParagraphOrphansControl.

Returns

Paragraph

this Paragraph instance.

SetWidowsControl(ParagraphWidowsControl)

Sets widows restriction on a Paragraph.

public virtual Paragraph SetWidowsControl(ParagraphWidowsControl widowsControl)

Parameters

widowsControl ParagraphWidowsControl

an instance of ParagraphWidowsControl.

Returns

Paragraph

this Paragraph instance.