Table of Contents

Class RtfTocEntry

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

The RtfTOCEntry is used together with the RtfTableOfContents to generate a table of contents. Add the RtfTOCEntry in those locations in the document where table of contents entries should link to @version \(Version:\) @author Mark Hall (Mark.Hall@mail.room3b.eu) @author Steffen.Stundzig@smb-tec.com

public class RtfTocEntry : RtfField, IElement, IRtfBasicElement, IRtfElementInterface
Inheritance
RtfTocEntry
Implements
Inherited Members

Constructors

RtfTocEntry(string)

Constructs a RtfTOCEntry with a certain entry text.

public RtfTocEntry(string entry)

Parameters

entry string

The entry text to display

Methods

SetShowPageNumber(bool)

Sets whether to display a page number in the table of contents, or not

public void SetShowPageNumber(bool showPageNumber)

Parameters

showPageNumber bool

Whether to display a page number or not

WriteContent(Stream)

Writes the content of the RtfTOCEntry

public override void WriteContent(Stream outp)

Parameters

outp Stream

WriteFieldInstContent(Stream)

unused

protected override void WriteFieldInstContent(Stream oupt)

Parameters

oupt Stream

WriteFieldResultContent(Stream)

unused @see com.lowagie.text.rtf.field.RtfField#writeFieldResultContent(java.io.OutputStream)

protected override void WriteFieldResultContent(Stream oupt)

Parameters

oupt Stream