Table of Contents

Class RtfSection

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

The RtfSection wraps a Section element. INTERNAL CLASS @author Mark Hall (Mark.Hall@mail.room3b.eu)

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

Constructors

RtfSection(RtfDocument, Section)

Constructs a RtfSection for a given Section. If the autogenerateTOCEntries property of the RtfDocument is set and the title is not empty then a TOC entry is generated for the title.

public RtfSection(RtfDocument doc, Section section)

Parameters

doc RtfDocument

The RtfDocument this RtfSection belongs to

section Section

The Section this RtfSection is based on

Fields

Items

The sub-items of this RtfSection

protected List<IRtfBasicElement> Items

Field Value

List<IRtfBasicElement>

Title

The title paragraph of this RtfSection

protected RtfParagraph Title

Field Value

RtfParagraph

Methods

SetInHeader(bool)

Sets whether this RtfSection 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 RtfSection is in a header, false otherwise

SetInTable(bool)

Sets whether this RtfSection 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 RtfSection is in a table, false otherwise

WriteContent(Stream)

Write this RtfSection and its contents

public override void WriteContent(Stream outp)

Parameters

outp Stream