Class RtfAddableElement
- Namespace
- iTextSharp.text.rtf
- Assembly
- iTextSharp.LGPLv2.Core.dll
The RtfAddableElement is the superclass for all rtf specific elements that need to be added to an iText document. It is an extension of Chunk and it also implements RtfBasicElement. It is an abstract class thus it cannot be instantiated itself and has to be subclassed to be used. @version $Revision: 1.6 $ @author Mark Hall (Mark.Hall@mail.room3b.eu)
public abstract class RtfAddableElement : Chunk, IElement, IRtfBasicElement, IRtfElementInterface
- Inheritance
-
RtfAddableElement
- Implements
- Derived
- Inherited Members
Constructors
RtfAddableElement()
Constructs a new RtfAddableElement. The Chunk content is set to an empty string and the font to the default Font().
protected RtfAddableElement()
Fields
Doc
The RtfDocument this RtfAddableElement belongs to.
protected RtfDocument Doc
Field Value
InHeader
Whether this RtfAddableElement is contained in a header.
protected bool InHeader
Field Value
InTable
Whether this RtfAddableElement is contained in a table.
protected bool InTable
Field Value
Methods
IntToByteArray(int)
Transforms an integer into its String representation and then returns the bytes of that string.
public static byte[] IntToByteArray(int i)
Parameters
i
intThe integer to convert
Returns
- byte[]
A byte array representing the integer
IsEmpty()
RtfAddableElement subclasses are never assumed to be empty.
public override bool IsEmpty()
Returns
SetInHeader(bool)
Sets whether this RtfAddableElement is contained in a header/footer.
public void SetInHeader(bool inHeader)
Parameters
inHeader
bool
SetInTable(bool)
Sets whether this RtfAddableElement is contained in a table.
public void SetInTable(bool inTable)
Parameters
inTable
bool
SetRtfDocument(RtfDocument)
Sets the RtfDocument this RtfAddableElement belongs to.
public void SetRtfDocument(RtfDocument doc)
Parameters
doc
RtfDocument
WriteContent(Stream)
Writes the element content to the given output stream.
public abstract void WriteContent(Stream outp)
Parameters
outp
Stream