Class RtfImportMappings
- Namespace
- iTextSharp.text.rtf.parser
- Assembly
- iTextSharp.LGPLv2.Core.dll
The RtfImportMappings make it possible to define font
and color mappings when using the RtfWriter2.importRtfFragment
method. This is necessary, because a RTF fragment does not
contain font or color information, just references to the
font and color tables.
The font mappings are fontNr -> fontName and the color
mappigns are colorNr -> Color.
@author Mark Hall (Mark.Hall@mail.room3b.eu)
@author Howard Shank (hgshank@yahoo.com)
public class RtfImportMappings
- Inheritance
-
RtfImportMappings
- Inherited Members
Constructors
RtfImportMappings()
Constructs a new RtfImportMappings initialising the mappings.
public RtfImportMappings()
Methods
AddColor(string, BaseColor)
Add a color to the list of mappings.
public void AddColor(string colorNr, BaseColor color)
Parameters
AddFont(string, string)
Add a font to the list of mappings.
public void AddFont(string fontNr, string fontName)
Parameters
AddList(string, string)
Add a List to the list of mappings.
public void AddList(string listNr, string list)
Parameters
AddStylesheetList(string, string)
Add a Stylesheet List to the list of mappings.
public void AddStylesheetList(string stylesheetListNr, string list)
Parameters
GetColorMappings()
Gets the list of color mappings. String to Color.
public INullValueDictionary<string, BaseColor> GetColorMappings()
Returns
- INullValueDictionary<string, BaseColor>
The color mappings.
GetFontMappings()
Gets the list of font mappings. String to String.
public INullValueDictionary<string, string> GetFontMappings()
Returns
- INullValueDictionary<string, string>
The font mappings.
GetListMappings()
Gets the list of List mappings.
public INullValueDictionary<string, string> GetListMappings()
Returns
- INullValueDictionary<string, string>
The List mappings.
GetStylesheetListMappings()
Gets the list of Stylesheet mappings. .
public INullValueDictionary<string, string> GetStylesheetListMappings()
Returns
- INullValueDictionary<string, string>
The Stylesheet List mappings.