HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.rtf.RtfElement Class Referenceabstract
Inheritance diagram for iTextSharp.text.rtf.RtfElement:
iTextSharp.text.rtf.IRtfBasicElement iTextSharp.text.IRtfElementInterface iTextSharp.text.rtf.document.RtfCodePage iTextSharp.text.rtf.document.RtfDocument iTextSharp.text.rtf.document.RtfDocumentHeader iTextSharp.text.rtf.document.RtfGenerator iTextSharp.text.rtf.document.RtfInfoElement iTextSharp.text.rtf.document.RtfInfoGroup iTextSharp.text.rtf.document.RtfPageSetting iTextSharp.text.rtf.document.RtfProtectionSetting iTextSharp.text.rtf.graphic.RtfImage iTextSharp.text.rtf.list.RtfList iTextSharp.text.rtf.list.RtfListLevel iTextSharp.text.rtf.list.RtfListTable iTextSharp.text.rtf.list.RtfPictureList iTextSharp.text.rtf.style.RtfColor iTextSharp.text.rtf.style.RtfColorList iTextSharp.text.rtf.style.RtfFontList iTextSharp.text.rtf.style.RtfStylesheetList iTextSharp.text.rtf.table.RtfBorder iTextSharp.text.rtf.table.RtfBorderGroup iTextSharp.text.rtf.table.RtfRow iTextSharp.text.rtf.table.RtfTable iTextSharp.text.rtf.text.RtfAnnotation iTextSharp.text.rtf.text.RtfChunk iTextSharp.text.rtf.text.RtfNewPage iTextSharp.text.rtf.text.RtfPhrase iTextSharp.text.rtf.text.RtfSection

Public Member Functions

 RtfElement (RtfDocument doc)
 
byte[] IntToByteArray (int i)
 
abstract void WriteContent (Stream outp)
 
virtual void SetRtfDocument (RtfDocument doc)
 
virtual bool IsInTable ()
 
virtual void SetInTable (bool inTable)
 
virtual void SetInHeader (bool inHeader)
 

Static Public Attributes

static byte[] OPEN_GROUP = {(byte)'{'}
 
static byte[] CLOSE_GROUP = {(byte)'}'}
 
static byte[] DELIMITER = {(byte)' '}
 
static byte[] COMMA_DELIMITER = {(byte)';'}
 
const double TWIPS_FACTOR = 20
 

Protected Attributes

RtfDocument document = null
 
bool inTable = false
 
bool inHeader = false
 

Detailed Description

RtfElement is the base class for all RTF Element classes

Version:

Id
RtfElement.cs,v 1.5 2008/05/16 19:30:14 psoares33 Exp
Author
Mark Hall (Mark..nosp@m.Hall.nosp@m.@mail.nosp@m..roo.nosp@m.m3b.e.nosp@m.u)

Constructor & Destructor Documentation

◆ RtfElement()

iTextSharp.text.rtf.RtfElement.RtfElement ( RtfDocument  doc)

Constructs a RtfElement belonging to the specified RtfDocument.

Parameters
docThe RtfDocument this RtfElement belongs to

Member Function Documentation

◆ IntToByteArray()

byte [] iTextSharp.text.rtf.RtfElement.IntToByteArray ( int  i)

Transforms an integer into its String representation and then returns the bytes of that string.

Parameters
iThe integer to convert
Returns
A byte array representing the integer

◆ IsInTable()

virtual bool iTextSharp.text.rtf.RtfElement.IsInTable ( )
virtual

Gets whether this RtfElement is in a table

Returns
Whether this RtfElement is in a table

◆ SetInHeader()

virtual void iTextSharp.text.rtf.RtfElement.SetInHeader ( bool  inHeader)
virtual

Sets whether this RtfElement is in a header

Parameters
inHeaderTrue if this RtfElement is in a header, false otherwise

Implements iTextSharp.text.rtf.IRtfBasicElement.

Reimplemented in iTextSharp.text.rtf.text.RtfSection, iTextSharp.text.rtf.text.RtfPhrase, and iTextSharp.text.rtf.list.RtfList.

◆ SetInTable()

virtual void iTextSharp.text.rtf.RtfElement.SetInTable ( bool  inTable)
virtual

Sets whether this RtfElement is in a table

Parameters
inTableTrue if this RtfElement is in a table, false otherwise

Implements iTextSharp.text.rtf.IRtfBasicElement.

Reimplemented in iTextSharp.text.rtf.text.RtfSection, iTextSharp.text.rtf.text.RtfPhrase, and iTextSharp.text.rtf.list.RtfList.

◆ SetRtfDocument()

virtual void iTextSharp.text.rtf.RtfElement.SetRtfDocument ( RtfDocument  doc)
virtual

Sets the RtfDocument this RtfElement belongs to

Parameters
docThe RtfDocument to use

Implements iTextSharp.text.rtf.IRtfBasicElement.

Reimplemented in iTextSharp.text.rtf.text.RtfPhrase, iTextSharp.text.rtf.text.RtfChunk, and iTextSharp.text.rtf.style.RtfColor.

◆ WriteContent()

Member Data Documentation

◆ CLOSE_GROUP

byte [] iTextSharp.text.rtf.RtfElement.CLOSE_GROUP = {(byte)'}'}
static

Constant for the end of an rtf group

◆ COMMA_DELIMITER

byte [] iTextSharp.text.rtf.RtfElement.COMMA_DELIMITER = {(byte)';'}
static

Constant for a comma delimiter in rtf

◆ DELIMITER

byte [] iTextSharp.text.rtf.RtfElement.DELIMITER = {(byte)' '}
static

Constant for a delimiter in rtf

◆ document

RtfDocument iTextSharp.text.rtf.RtfElement.document = null
protected

The RtfDocument this RtfElement belongs to

◆ inHeader

bool iTextSharp.text.rtf.RtfElement.inHeader = false
protected

Whether this RtfElement is in a header

◆ inTable

bool iTextSharp.text.rtf.RtfElement.inTable = false
protected

Whether this RtfElement is in a table

◆ OPEN_GROUP

byte [] iTextSharp.text.rtf.RtfElement.OPEN_GROUP = {(byte)'{'}
static

Constant for the beginning of a rtf group

◆ TWIPS_FACTOR

const double iTextSharp.text.rtf.RtfElement.TWIPS_FACTOR = 20
static

The factor to use for translating from iText to rtf measurments


The documentation for this class was generated from the following file: