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
RtfDocumentThe RtfDocument this RtfSection belongs to
section
SectionThe Section this RtfSection is based on
Fields
Items
The sub-items of this RtfSection
protected List<IRtfBasicElement> Items
Field Value
Title
The title paragraph of this RtfSection
protected RtfParagraph Title
Field Value
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
boolTrue 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
boolTrue 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