Class RtfParagraph
- Namespace
- iTextSharp.text.rtf.text
- Assembly
- iTextSharp.LGPLv2.Core.dll
The RtfParagraph is an extension of the RtfPhrase that adds alignment and indentation properties. It wraps a Paragraph. @version \(Version:\) @author Mark Hall (Mark.Hall@mail.room3b.eu)
public class RtfParagraph : RtfPhrase, IRtfBasicElement, IRtfElementInterface
- Inheritance
-
RtfParagraph
- Implements
- Derived
- Inherited Members
Constructors
RtfParagraph(RtfDocument, Paragraph)
Constructs a RtfParagraph belonging to a RtfDocument based on a Paragraph.
public RtfParagraph(RtfDocument doc, Paragraph paragraph)
Parameters
doc
RtfDocumentThe RtfDocument this RtfParagraph belongs to
paragraph
ParagraphThe Paragraph that this RtfParagraph is based on
Fields
Paragraph
Constant for the end of a paragraph
public static readonly byte[] Paragraph
Field Value
- byte[]
ParagraphStyle
An optional RtfParagraphStyle to use for styling.
protected RtfParagraphStyle ParagraphStyle
Field Value
Methods
GetIndentLeft()
Gets the left indentation of this RtfParagraph.
public int GetIndentLeft()
Returns
- int
The left indentation.
GetIndentRight()
Gets the right indentation of this RtfParagraph.
public int GetIndentRight()
Returns
- int
The right indentation.
SetIndentLeft(int)
Sets the left indentation of this RtfParagraph.
public void SetIndentLeft(int indentLeft)
Parameters
indentLeft
intThe left indentation to use.
SetIndentRight(int)
Sets the right indentation of this RtfParagraph.
public void SetIndentRight(int indentRight)
Parameters
indentRight
intThe right indentation to use.
SetKeepTogetherWithNext(bool)
Set whether this RtfParagraph must stay on the same page as the next one.
public void SetKeepTogetherWithNext(bool keepTogetherWithNext)
Parameters
keepTogetherWithNext
boolWhether this RtfParagraph must keep together with the next.
WriteContent(Stream)
Writes the content of this RtfParagraph. First paragraph specific data is written and then the RtfChunks of this RtfParagraph are added.
public override void WriteContent(Stream outp)
Parameters
outp
Stream