Class Paragraph
A Paragraph is a content node that contains a list of TextRun objects.
Implements
Inherited Members
Namespace: pdftron.Layout
Assembly: PDFNet.dll
Syntax
public class Paragraph : ContentNode, IDisposable
Methods
AddTabStop(double)
Add tab stop for paragraph
Declaration
public void AddTabStop(double val)
Parameters
Type | Name | Description |
---|---|---|
double | val | The next tab stop to set |
AddText(string)
Add 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 |
---|---|
Text |
The newly created TextRun object |
Dispose(bool)
Declaration
[HandleProcessCorruptedStateExceptions]
protected override void Dispose(bool A_0)
Parameters
Type | Name | Description |
---|---|---|
bool | A_0 |
Overrides
~Paragraph()
Declaration
protected ~Paragraph()
GetBorderColor(byte*)
Get the border color of the paragraph
Declaration
public void GetBorderColor(byte* rgb)
Parameters
Type | Name | Description |
---|---|---|
byte* | rgb | The color values are returned as an array of 3 integers in the range * 0 to 255, inclusive |
GetBorderThickness()
Get the border thickness of the paragraph
Declaration
public double GetBorderThickness()
Returns
Type | Description |
---|---|
double | border thickness |
GetDefaultTabStop()
Get default tab stop for the paragraph
Declaration
public double GetDefaultTabStop()
Returns
Type | Description |
---|---|
double | default tab stop for paragraph style |
GetEndIndent()
Get end indent for the paragraph
Declaration
public double GetEndIndent()
Returns
Type | Description |
---|---|
double | end indent for paragraph style |
GetJustificationMode()
Get justification mode for the paragraph
Declaration
public Paragraph.TextJustification GetJustificationMode()
Returns
Type | Description |
---|---|
Paragraph.Text |
Justification mode for paragraph style |
GetNextTabStop(double)
Get next tab stop for the paragraph
Declaration
public double GetNextTabStop(double val)
Parameters
Type | Name | Description |
---|---|---|
double | val |
Returns
Type | Description |
---|---|
double | next tab stop for paragraph style |
GetSpaceAfter()
Get the "space after" value for the paragraph style
Declaration
public double GetSpaceAfter()
Returns
Type | Description |
---|---|
double | "space after" value for paragraph style |
GetSpaceBefore()
Get the "space before" value for the paragraph style
Declaration
public double GetSpaceBefore()
Returns
Type | Description |
---|---|
double | "space before" value for paragraph style |
GetSpacesPerTab()
Get spaces per tab for the paragraph
Declaration
public uint GetSpacesPerTab()
Returns
Type | Description |
---|---|
uint | spaces per tab for paragraph style |
GetStartIndent()
Get start indent for the paragraph
Declaration
public double GetStartIndent()
Returns
Type | Description |
---|---|
double | start indent for paragraph style |
GetTextIndent()
Get text indent for the paragraph
Declaration
public double GetTextIndent()
Returns
Type | Description |
---|---|
double | text indent for paragraph style |
IsDisplayRtl()
Get the direction of text in paragraph
Declaration
public bool IsDisplayRtl()
Returns
Type | Description |
---|---|
bool | true if the direction of text in paragraph is set as 'RTL' |
SetBorder(double, byte, byte, byte)
Set the paragraph's border thickness and color The color values must be between 0 and 255, otherwise an exception will be thrown.
Declaration
public void SetBorder(double thickness, byte red, byte green, byte blue)
Parameters
Type | Name | Description |
---|---|---|
double | thickness | The thickness of the border |
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)
Set default tab stop for paragraph
Declaration
public void SetDefaultTabStop(double val)
Parameters
Type | Name | Description |
---|---|---|
double | val | The default tab stop to set |
SetDisplayRtl(bool)
Set direction of text in paragraph as 'RTL'
Declaration
public void SetDisplayRtl(bool val)
Parameters
Type | Name | Description |
---|---|---|
bool | val | use true to set direction of text in paragraph as 'RTL' |
SetEndIndent(double)
Set end indent for paragraph style
Declaration
public void SetEndIndent(double val)
Parameters
Type | Name | Description |
---|---|---|
double | val | The end indent to set |
SetJustificationMode(TextJustification)
Set justification mode for paragraph style
Declaration
public void SetJustificationMode(Paragraph.TextJustification val)
Parameters
Type | Name | Description |
---|---|---|
Paragraph.Text |
val | The justification mode to set |
SetSpaceAfter(double)
Set the "space after" value for the paragraph style
Declaration
public void SetSpaceAfter(double val)
Parameters
Type | Name | Description |
---|---|---|
double | val | The "space after" value to set |
SetSpaceBefore(double)
Set the "space before" value for the paragraph style
Declaration
public void SetSpaceBefore(double val)
Parameters
Type | Name | Description |
---|---|---|
double | val | The "space before" value to set |
SetSpacesPerTab(uint)
Set spaces per tab for paragraph
Declaration
public void SetSpacesPerTab(uint val)
Parameters
Type | Name | Description |
---|---|---|
uint | val | The spaces per tab value to set |
SetStartIndent(double)
Set start indent for paragraph style
Declaration
public void SetStartIndent(double val)
Parameters
Type | Name | Description |
---|---|---|
double | val | The start indent to set |
SetTextIndent(double)
Set text indent for paragraph style
Declaration
public void SetTextIndent(double val)
Parameters
Type | Name | Description |
---|---|---|
double | val | The text indent to set |