Table of Contents

Class RtfStylesheetList

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

The RtfStylesheetList stores the RtfParagraphStyles that are used in the document. @version $Revision: 1.5 $ @author Mark Hall (Mark.Hall@mail.room3b.eu)

public class RtfStylesheetList : RtfElement, IRtfExtendedElement, IRtfBasicElement, IRtfElementInterface
Inheritance
RtfStylesheetList
Implements
Inherited Members

Constructors

RtfStylesheetList(RtfDocument)

Constructs a new RtfStylesheetList for the RtfDocument.

public RtfStylesheetList(RtfDocument doc)

Parameters

doc RtfDocument

The RtfDocument this RtfStylesheetList belongs to.

Methods

GetRtfParagraphStyle(string)

Gets the RtfParagraphStyle with the given name. Makes sure that the defaults have been loaded.

public RtfParagraphStyle GetRtfParagraphStyle(string styleName)

Parameters

styleName string

The name of the RtfParagraphStyle to get.

Returns

RtfParagraphStyle

The RtfParagraphStyle with the given name or null.

RegisterParagraphStyle(RtfParagraphStyle)

Register a RtfParagraphStyle with this RtfStylesheetList.

public void RegisterParagraphStyle(RtfParagraphStyle rtfParagraphStyle)

Parameters

rtfParagraphStyle RtfParagraphStyle

The RtfParagraphStyle to add.

WriteContent(Stream)

unused

public override void WriteContent(Stream outp)

Parameters

outp Stream

WriteDefinition(Stream)

Writes the definition of the stylesheet list.

public virtual void WriteDefinition(Stream outp)

Parameters

outp Stream