iText 5

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

Type

Name

Methods

IFontProvider

FontProvider

get, set

Methods

Public methods

Returns

Name

Chunk

CreateChunk

(string content,

ChainedProperties

chain)

Image

CreateImage

(string src, IDictionary<string, string> attrs,

ChainedProperties

chain,

IDocListener

document,

IImageProvider

img_provider, Dictionary<string,

Image

> img_store, string img_baseurl)

LineSeparator

CreateLineSeparator

(IDictionary<string, string> attrs, float offset)

List

CreateList

(string tag,

ChainedProperties

chain)

ListItem

CreateListItem

(

ChainedProperties

chain)

Paragraph

CreateParagraph

(

ChainedProperties

chain)

Font

GetFont

(

ChainedProperties

chain)

IHyphenationEvent

GetHyphenation

(

ChainedProperties

chain)

Protected methods

Returns

Name

void

UpdateElement

(

Paragraph

paragraph,

ChainedProperties

chain)

Protected Static methods

Returns

Name

void

SetParagraphLeading

(

Paragraph

paragraph, string leading)

Details

Constructors

ElementFactory

Source code

public ElementFactory()

Methods

GetFont

Source code

public virtual Font GetFont(ChainedProperties chain)

Arguments

Type

Name

Description

ChainedProperties

chain

CreateChunk

Source code

public virtual Chunk CreateChunk(string content, ChainedProperties chain)

Arguments

Type

Name

Description

string

content

ChainedProperties

chain

CreateParagraph

Source code

public virtual Paragraph CreateParagraph(ChainedProperties chain)

Arguments

Type

Name

Description

ChainedProperties

chain

CreateListItem

Source code

public virtual ListItem CreateListItem(ChainedProperties chain)

Arguments

Type

Name

Description

ChainedProperties

chain

UpdateElement

Source code

protected virtual void UpdateElement(Paragraph paragraph, ChainedProperties chain)

Arguments

Type

Name

Description

Paragraph

paragraph

ChainedProperties

chain

SetParagraphLeading

Source code

protected static void SetParagraphLeading(Paragraph paragraph, string leading)

Arguments

Type

Name

Description

Paragraph

paragraph

string

leading

GetHyphenation

Source code

public virtual IHyphenationEvent GetHyphenation(ChainedProperties chain)

Arguments

Type

Name

Description

ChainedProperties

chain

CreateLineSeparator

Source code

public virtual LineSeparator CreateLineSeparator(IDictionary<string, string> attrs, float offset)

Arguments

Type

Name

Description

IDictionary<string, string>

attrs

float

offset

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

Type

Name

Description

string

src

IDictionary<string, string>

attrs

ChainedProperties

chain

IDocListener

document

IImageProvider

img_provider

Dictionary<string,

Image

>

img_store

string

img_baseurl

CreateList

Source code

public virtual List CreateList(string tag, ChainedProperties chain)

Arguments

Type

Name

Description

string

tag

ChainedProperties

chain

Properties

FontProvider

public virtual IFontProvider FontProvider { get; set; }

Generated with ModularDoc