Table of Contents

Class RtfPhrase

Namespace
iTextSharp.text.rtf.text
Assembly
iTextSharp.LGPLv2.Core.dll

The RtfPhrase contains multiple RtfChunks @version $Id: RtfPhrase.cs,v 1.10 2008/05/16 19:31:24 psoares33 Exp $ @author Mark Hall (Mark.Hall@mail.room3b.eu)

public class RtfPhrase : RtfElement, IRtfBasicElement, IRtfElementInterface
Inheritance
RtfPhrase
Implements
Derived
Inherited Members

Constructors

RtfPhrase(RtfDocument)

A basically empty constructor that is used by the RtfParagraph.

protected RtfPhrase(RtfDocument doc)

Parameters

doc RtfDocument

The RtfDocument this RtfPhrase belongs to.

RtfPhrase(RtfDocument, Phrase)

Constructs a new RtfPhrase for the RtfDocument with the given Phrase

public RtfPhrase(RtfDocument doc, Phrase phrase)

Parameters

doc RtfDocument

The RtfDocument this RtfPhrase belongs to

phrase Phrase

The Phrase this RtfPhrase is based on

Fields

Chunks

ArrayList containing the RtfChunks of this RtfPhrase

protected List<IRtfBasicElement> Chunks

Field Value

List<IRtfBasicElement>

InTable

Constant for phrase in a table indication

public static readonly byte[] InTable

Field Value

byte[]

LineSpacing

Constant for the line spacing.

public static readonly byte[] LineSpacing

Field Value

byte[]

ParagraphDefaults

Constant for the resetting of the paragraph defaults

public static readonly byte[] ParagraphDefaults

Field Value

byte[]

Plain

Constant for resetting of font settings to their defaults

public static readonly byte[] Plain

Field Value

byte[]

Methods

SetInHeader(bool)

Sets whether this RtfPhrase is in a header. Sets the correct inTable setting for all child elements.

public override void SetInHeader(bool inHeader)

Parameters

inHeader bool

True if this RtfPhrase is in a header, false otherwise

SetInTable(bool)

Sets whether this RtfPhrase is in a table. Sets the correct inTable setting for all child elements.

public override void SetInTable(bool inTable)

Parameters

inTable bool

True if this RtfPhrase is in a table, false otherwise

SetRtfDocument(RtfDocument)

Sets the RtfDocument this RtfPhrase belongs to. Also sets the RtfDocument for all child elements.

public override void SetRtfDocument(RtfDocument doc)

Parameters

doc RtfDocument

The RtfDocument to use

WriteContent(Stream)

Write the content of this RtfPhrase. First resets to the paragraph defaults then if the RtfPhrase is in a RtfCell a marker for this is written and finally the RtfChunks of this RtfPhrase are written.

public override void WriteContent(Stream outp)

Parameters

outp Stream