Show / Hide Table of Contents

# Class Paragraph

##### Inheritance

object
ContentElement
ContentNode
Paragraph

##### Inherited Members

ContentNode.GetContentNodeIterator()
ContentElement.m_impl
ContentElement.m_ref
ContentElement.AsContentNode()
ContentElement.AsTextRun()
ContentElement.AsParagraph()
ContentElement.AsTableCell()
ContentElement.AsTableRow()
ContentElement.AsTable()
ContentElement.AsList()
ContentElement.AsListItem()
ContentElement.GetTextStyledElement()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: pdftron.Layout

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class Paragraph : ContentNode

### Constructors

#### Paragraph(IntPtr, object)

##### Declaration

    public Paragraph(IntPtr impl, object reference)

##### Parameters

Type | Name | Description
--- | --- | ---
IntPtr | impl |
object | reference |

### Methods

#### AddTabStop(double)

Adds a tab stop to the paragraph style.

##### Declaration

    public void AddTabStop(double val)

##### Parameters

Type | Name | Description
--- | --- | ---
double | val | The position of the tab stop to add.

#### AddText(string)

Adds another text run to the paragraph.

##### Declaration

    public TextRun AddText(string text)

##### Parameters

Type | Name | Description
--- | --- | ---
string | text | The text to add.

##### Returns

Type | Description
--- | ---
TextRun | The newly created TextRun object.

#### GetBorderThickness()

Gets the border thickness for the paragraph style.

##### Declaration

    public double GetBorderThickness()

##### Returns

Type | Description
--- | ---
double | The border thickness for the paragraph style.

#### GetDefaultTabStop()

Gets the default tab stop position for the paragraph style.

##### Declaration

    public double GetDefaultTabStop()

##### Returns

Type | Description
--- | ---
double | The default tab stop position for the paragraph style.

#### GetEndIndent()

Gets the end indent for the paragraph style.

##### Declaration

    public double GetEndIndent()

##### Returns

Type | Description
--- | ---
double | The end indent value for the paragraph style.

#### GetJustificationMode()

Gets the justification mode for the paragraph.

##### Declaration

    public Paragraph.TextJustification GetJustificationMode()

##### Returns

Type | Description
--- | ---
Paragraph.TextJustification | The justification mode for the paragraph style.

#### GetNextTabStop(double)

Gets the next tab stop position for the paragraph style, given a starting position.

##### Declaration

    public double GetNextTabStop(double val)

##### Parameters

Type | Name | Description
--- | --- | ---
double | val | The starting position.

##### Returns

Type | Description
--- | ---
double | The position of the next tab stop.

#### GetSpaceAfter()

Gets the "space after" value for the paragraph style.

##### Declaration

    public double GetSpaceAfter()

##### Returns

Type | Description
--- | ---
double | The "space after" value for the paragraph style.

#### GetSpaceBefore()

Gets the "space before" value for the paragraph style.

##### Declaration

    public double GetSpaceBefore()

##### Returns

Type | Description
--- | ---
double | The "space before" value for the paragraph style.

#### GetSpacesPerTab()

Gets the number of spaces per tab for the paragraph style.

##### Declaration

    public uint GetSpacesPerTab()

##### Returns

Type | Description
--- | ---
uint | The number of spaces per tab for the paragraph style.

#### GetStartIndent()

Gets the start indent for the paragraph style.

##### Declaration

    public double GetStartIndent()

##### Returns

Type | Description
--- | ---
double | The start indent value for the paragraph style.

#### GetTextIndent()

Gets the text indent for the paragraph style.

##### Declaration

    public double GetTextIndent()

##### Returns

Type | Description
--- | ---
double | The text indent value for the paragraph style.

#### IsDisplayRtl()

Checks if the paragraph style has the right-to-left (RTL) property set.

##### Declaration

    public bool IsDisplayRtl()

##### Returns

Type | Description
--- | ---
bool | True if the display is RTL, false otherwise.

#### SetBorder(double, byte, byte, byte)

Sets the border for the paragraph style.

##### Declaration

    public void SetBorder(double thickness, byte red, byte green, byte blue)

##### Parameters

Type | Name | Description
--- | --- | ---
double | thickness | The border thickness.
byte | red | The red component of the border color.
byte | green | The green component of the border color.
byte | blue | The blue component of the border color.

#### SetDefaultTabStop(double)

Sets the default tab stop position for the paragraph style.

##### Declaration

    public void SetDefaultTabStop(double val)

##### Parameters

Type | Name | Description
--- | --- | ---
double | val | The default tab stop position to set.

#### SetDisplayRtl(bool)

Sets the right-to-left (RTL) property for the paragraph style.

##### Declaration

    public void SetDisplayRtl(bool val)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | val | The value to set. True if RTL, false if not.

#### SetEndIndent(double)

Sets the end indent for the paragraph style.

##### Declaration

    public void SetEndIndent(double val)

##### Parameters

Type | Name | Description
--- | --- | ---
double | val | The end indent value to set.

#### SetJustificationMode(TextJustification)

Sets the justification mode for the paragraph style.

##### Declaration

    public void SetJustificationMode(Paragraph.TextJustification val)

##### Parameters

Type | Name | Description
--- | --- | ---
Paragraph.TextJustification | val |

#### SetSpaceAfter(double)

Sets the "space after" value for the paragraph style.

##### Declaration

    public void SetSpaceAfter(double val)

##### Parameters

Type | Name | Description
--- | --- | ---
double | val |

#### SetSpaceBefore(double)

Sets the "space before" value for the paragraph style.

##### Declaration

    public void SetSpaceBefore(double val)

##### Parameters

Type | Name | Description
--- | --- | ---
double | val |

#### SetSpacesPerTab(uint)

Sets the number of spaces per tab for the paragraph style.

##### Declaration

    public void SetSpacesPerTab(uint val)

##### Parameters

Type | Name | Description
--- | --- | ---
uint | val | The number of spaces per tab to set.

#### SetStartIndent(double)

Sets the start indent for the paragraph style.

##### Declaration

    public void SetStartIndent(double val)

##### Parameters

Type | Name | Description
--- | --- | ---
double | val | The start indent value to set.

#### SetTextIndent(double)

Sets the text indent for the paragraph style.

##### Declaration

    public void SetTextIndent(double val)

##### Parameters

Type | Name | Description
--- | --- | ---
double | val | The text indent value to set.