Class RtfFontList
- Namespace
- iTextSharp.text.rtf.style
- Assembly
- iTextSharp.LGPLv2.Core.dll
The RtfFontList stores the list of fonts used in the rtf document. It also has methods for writing this list to the document @author Mark Hall (Mark.Hall@mail.room3b.eu)
public class RtfFontList : RtfElement, IRtfExtendedElement, IRtfBasicElement, IRtfElementInterface
- Inheritance
-
RtfFontList
- Implements
- Inherited Members
Constructors
RtfFontList(RtfDocument)
Creates a RtfFontList
public RtfFontList(RtfDocument doc)
Parameters
doc
RtfDocumentThe RtfDocument this RtfFontList belongs to
Fields
FontNumber
Constant for the font number
public static readonly byte[] FontNumber
Field Value
- byte[]
Methods
GetFontNumber(RtfFont)
Gets the index of the font in the list of fonts. If the font does not exist in the list, it is added.
public int GetFontNumber(RtfFont font)
Parameters
font
RtfFontThe font to get the id for
Returns
- int
The index of the font
WriteContent(Stream)
unused
public override void WriteContent(Stream outp)
Parameters
outp
Stream
WriteDefinition(Stream)
Writes the definition of the font list
public virtual void WriteDefinition(Stream outp)
Parameters
outp
Stream