Table of Contents

Class RtfChunk

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

The RtfChunk contains one piece of text. The smallest text element available in iText. @version \(Version:\) @author Mark Hall (Mark.Hall@mail.room3b.eu)

public class RtfChunk : RtfElement, IRtfBasicElement, IRtfElementInterface
Inheritance
RtfChunk
Implements
Inherited Members

Constructors

RtfChunk(RtfDocument, Chunk)

Constructs a RtfChunk based on the content of a Chunk

public RtfChunk(RtfDocument doc, Chunk chunk)

Parameters

doc RtfDocument

The RtfDocument that this Chunk belongs to

chunk Chunk

The Chunk that this RtfChunk is based on

Methods

GetSoftLineBreaks()

Gets whether to use soft line breaks instead of default hard ones.

public bool GetSoftLineBreaks()

Returns

bool

whether to use soft line breaks instead of default hard ones.

SetRtfDocument(RtfDocument)

Sets the RtfDocument this RtfChunk belongs to.

public override void SetRtfDocument(RtfDocument doc)

Parameters

doc RtfDocument

The RtfDocument to use

SetSoftLineBreaks(bool)

Sets whether to use soft line breaks instead of default hard ones.

public void SetSoftLineBreaks(bool softLineBreaks)

Parameters

softLineBreaks bool

whether to use soft line breaks instead of default hard ones.

WriteContent(Stream)

Writes the content of this RtfChunk. First the font information is written, then the content, and then more font information

public override void WriteContent(Stream outp)

Parameters

outp Stream