Skip to main content
Skip table of contents

ElementFactory

ElementFactory Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.html.simpleparser
  iTextSharp.text.html.simpleparser.ElementFactory[[ElementFactory]]
  end

Members

Properties

Public properties
TypeNameMethods
IFontProviderFontProviderget, set

Methods

Public methods
ReturnsName
ChunkCreateChunk(string content, ChainedProperties chain)
ImageCreateImage(string src, IDictionary<string, string> attrs, ChainedProperties chain, IDocListener document, IImageProvider img_provider, Dictionary<string, Image> img_store, string img_baseurl)
LineSeparatorCreateLineSeparator(IDictionary<string, string> attrs, float offset)
ListCreateList(string tag, ChainedProperties chain)
ListItemCreateListItem(ChainedProperties chain)
ParagraphCreateParagraph(ChainedProperties chain)
FontGetFont(ChainedProperties chain)
IHyphenationEventGetHyphenation(ChainedProperties chain)
Protected methods
ReturnsName
voidUpdateElement(Paragraph paragraph, ChainedProperties chain)
Protected Static methods
ReturnsName
voidSetParagraphLeading(Paragraph paragraph, string leading)

Details

Constructors

ElementFactory

Source code

public ElementFactory()

Methods

GetFont

Source code

public virtual Font GetFont(ChainedProperties chain)
Arguments
TypeNameDescription
ChainedPropertieschain
CreateChunk

Source code

public virtual Chunk CreateChunk(string content, ChainedProperties chain)
Arguments
TypeNameDescription
stringcontent
ChainedPropertieschain
CreateParagraph

Source code

public virtual Paragraph CreateParagraph(ChainedProperties chain)
Arguments
TypeNameDescription
ChainedPropertieschain
CreateListItem

Source code

public virtual ListItem CreateListItem(ChainedProperties chain)
Arguments
TypeNameDescription
ChainedPropertieschain
UpdateElement

Source code

protected virtual void UpdateElement(Paragraph paragraph, ChainedProperties chain)
Arguments
TypeNameDescription
Paragraphparagraph
ChainedPropertieschain
SetParagraphLeading

Source code

protected static void SetParagraphLeading(Paragraph paragraph, string leading)
Arguments
TypeNameDescription
Paragraphparagraph
stringleading
GetHyphenation

Source code

public virtual IHyphenationEvent GetHyphenation(ChainedProperties chain)
Arguments
TypeNameDescription
ChainedPropertieschain
CreateLineSeparator

Source code

public virtual LineSeparator CreateLineSeparator(IDictionary<string, string> attrs, float offset)
Arguments
TypeNameDescription
IDictionary<string, string>attrs
floatoffset
CreateImage

Source code

public virtual Image CreateImage(string src, IDictionary<string, string> attrs, ChainedProperties chain, IDocListener document, IImageProvider img_provider, Dictionary<string, Image> img_store, string img_baseurl)
Arguments
TypeNameDescription
stringsrc
IDictionary<string, string>attrs
ChainedPropertieschain
IDocListenerdocument
IImageProviderimg_provider
Dictionary<string, Image>img_store
stringimg_baseurl
CreateList

Source code

public virtual List CreateList(string tag, ChainedProperties chain)
Arguments
TypeNameDescription
stringtag
ChainedPropertieschain

Properties

FontProvider
public virtual IFontProvider FontProvider { get; set; }

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.