HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.html.Markup Class Reference

A class that contains all the possible tagnames and their attributes. More...

Static Public Member Functions

static float ParseLength (string str)
 Parses a length. More...
 
static float ParseLength (String str, float actualFontSize)
 
static Color DecodeColor (String s)
 Converts a More...
 
static Properties ParseAttributes (string str)
 This method parses a string with attributes and returns a Properties object. More...
 
static string RemoveComment (String str, String startComment, String endComment)
 

Static Public Attributes

const string ITEXT_TAG = "tag"
 
const string HTML_TAG_BODY = "body"
 
const string HTML_TAG_DIV = "div"
 
const string HTML_TAG_LINK = "link"
 
const string HTML_TAG_SPAN = "span"
 
const string HTML_ATTR_HEIGHT = "height"
 
const string HTML_ATTR_HREF = "href"
 
const string HTML_ATTR_REL = "rel"
 
const string HTML_ATTR_STYLE = "style"
 
const string HTML_ATTR_TYPE = "type"
 
const string HTML_ATTR_STYLESHEET = "stylesheet"
 
const string HTML_ATTR_WIDTH = "width"
 
const string HTML_ATTR_CSS_CLASS = "class"
 
const string HTML_ATTR_CSS_ID = "id"
 
const string HTML_VALUE_JAVASCRIPT = "text/javascript"
 
const string HTML_VALUE_CSS = "text/css"
 
const string CSS_KEY_BGCOLOR = "background-color"
 
const string CSS_KEY_COLOR = "color"
 
const string CSS_KEY_DISPLAY = "display"
 
const string CSS_KEY_FONTFAMILY = "font-family"
 
const string CSS_KEY_FONTSIZE = "font-size"
 
const string CSS_KEY_FONTSTYLE = "font-style"
 
const string CSS_KEY_FONTWEIGHT = "font-weight"
 
const string CSS_KEY_LINEHEIGHT = "line-height"
 
const string CSS_KEY_MARGIN = "margin"
 
const string CSS_KEY_MARGINLEFT = "margin-left"
 
const string CSS_KEY_MARGINRIGHT = "margin-right"
 
const string CSS_KEY_MARGINTOP = "margin-top"
 
const string CSS_KEY_MARGINBOTTOM = "margin-bottom"
 
const String CSS_KEY_PADDING = "padding"
 
const String CSS_KEY_PADDINGLEFT = "padding-left"
 
const String CSS_KEY_PADDINGRIGHT = "padding-right"
 
const String CSS_KEY_PADDINGTOP = "padding-top"
 
const String CSS_KEY_PADDINGBOTTOM = "padding-bottom"
 
const String CSS_KEY_BORDERCOLOR = "border-color"
 
const String CSS_KEY_BORDERWIDTH = "border-width"
 
const String CSS_KEY_BORDERWIDTHLEFT = "border-left-width"
 
const String CSS_KEY_BORDERWIDTHRIGHT = "border-right-width"
 
const String CSS_KEY_BORDERWIDTHTOP = "border-top-width"
 
const String CSS_KEY_BORDERWIDTHBOTTOM = "border-bottom-width"
 
const string CSS_KEY_PAGE_BREAK_AFTER = "page-break-after"
 
const string CSS_KEY_PAGE_BREAK_BEFORE = "page-break-before"
 
const string CSS_KEY_TEXTALIGN = "text-align"
 
const string CSS_KEY_TEXTDECORATION = "text-decoration"
 
const string CSS_KEY_VERTICALALIGN = "vertical-align"
 
const string CSS_KEY_VISIBILITY = "visibility"
 
const string CSS_VALUE_ALWAYS = "always"
 
const string CSS_VALUE_BLOCK = "block"
 
const string CSS_VALUE_BOLD = "bold"
 
const string CSS_VALUE_HIDDEN = "hidden"
 
const string CSS_VALUE_INLINE = "inline"
 
const string CSS_VALUE_ITALIC = "italic"
 
const string CSS_VALUE_LINETHROUGH = "line-through"
 
const string CSS_VALUE_LISTITEM = "list-item"
 
const string CSS_VALUE_NONE = "none"
 
const string CSS_VALUE_NORMAL = "normal"
 
const string CSS_VALUE_OBLIQUE = "oblique"
 
const string CSS_VALUE_TABLE = "table"
 
const string CSS_VALUE_TABLEROW = "table-row"
 
const string CSS_VALUE_TABLECELL = "table-cell"
 
const string CSS_VALUE_TEXTALIGNLEFT = "left"
 
const string CSS_VALUE_TEXTALIGNRIGHT = "right"
 
const string CSS_VALUE_TEXTALIGNCENTER = "center"
 
const string CSS_VALUE_TEXTALIGNJUSTIFY = "justify"
 
const string CSS_VALUE_UNDERLINE = "underline"
 
const float DEFAULT_FONT_SIZE = 12f
 

Detailed Description

A class that contains all the possible tagnames and their attributes.

Member Function Documentation

◆ DecodeColor()

static Color iTextSharp.text.html.Markup.DecodeColor ( String  s)
static

Converts a

Color into a HTML representation of this Color.

Parameters
colorthe
Color</CODE> that has to be converted.</param>
<returns>the HTML representation of this <CODE>Color</CODE></returns>

◆ ParseAttributes()

static Properties iTextSharp.text.html.Markup.ParseAttributes ( string  str)
static

This method parses a string with attributes and returns a Properties object.

Parameters
stra string of this form: 'key1="value1"; key2="value2";... keyN="valueN" '
Returns
a Properties object

◆ ParseLength() [1/2]

static float iTextSharp.text.html.Markup.ParseLength ( string  str)
static

Parses a length.

Parameters
stra length in the form of an optional + or -, followed by a number and a unit.
Returns
a float

◆ ParseLength() [2/2]

static float iTextSharp.text.html.Markup.ParseLength ( String  str,
float  actualFontSize 
)
static

New method contributed by: Lubos Strapko

Since
2.1.3

◆ RemoveComment()

static string iTextSharp.text.html.Markup.RemoveComment ( String  str,
String  startComment,
String  endComment 
)
static

Removes the comments sections of a String.

Parameters
stringthe original String
startCommentthe String that marks the start of a Comment section
endCommentthe String that marks the end of a Comment section.
Returns
the String stripped of its comment section

Member Data Documentation

◆ CSS_KEY_BGCOLOR

const string iTextSharp.text.html.Markup.CSS_KEY_BGCOLOR = "background-color"
static

the CSS tag for background color

◆ CSS_KEY_BORDERCOLOR

const String iTextSharp.text.html.Markup.CSS_KEY_BORDERCOLOR = "border-color"
static

the CSS tag for the margin of an object

◆ CSS_KEY_BORDERWIDTH

const String iTextSharp.text.html.Markup.CSS_KEY_BORDERWIDTH = "border-width"
static

the CSS tag for the margin of an object

◆ CSS_KEY_BORDERWIDTHBOTTOM

const String iTextSharp.text.html.Markup.CSS_KEY_BORDERWIDTHBOTTOM = "border-bottom-width"
static

the CSS tag for the margin of an object

◆ CSS_KEY_BORDERWIDTHLEFT

const String iTextSharp.text.html.Markup.CSS_KEY_BORDERWIDTHLEFT = "border-left-width"
static

the CSS tag for the margin of an object

◆ CSS_KEY_BORDERWIDTHRIGHT

const String iTextSharp.text.html.Markup.CSS_KEY_BORDERWIDTHRIGHT = "border-right-width"
static

the CSS tag for the margin of an object

◆ CSS_KEY_BORDERWIDTHTOP

const String iTextSharp.text.html.Markup.CSS_KEY_BORDERWIDTHTOP = "border-top-width"
static

the CSS tag for the margin of an object

◆ CSS_KEY_COLOR

const string iTextSharp.text.html.Markup.CSS_KEY_COLOR = "color"
static

the CSS tag for text color

◆ CSS_KEY_DISPLAY

const string iTextSharp.text.html.Markup.CSS_KEY_DISPLAY = "display"
static

CSS key that indicate the way something has to be displayed

◆ CSS_KEY_FONTFAMILY

const string iTextSharp.text.html.Markup.CSS_KEY_FONTFAMILY = "font-family"
static

the CSS tag for the font family

◆ CSS_KEY_FONTSIZE

const string iTextSharp.text.html.Markup.CSS_KEY_FONTSIZE = "font-size"
static

the CSS tag for the font size

◆ CSS_KEY_FONTSTYLE

const string iTextSharp.text.html.Markup.CSS_KEY_FONTSTYLE = "font-style"
static

the CSS tag for the font style

◆ CSS_KEY_FONTWEIGHT

const string iTextSharp.text.html.Markup.CSS_KEY_FONTWEIGHT = "font-weight"
static

the CSS tag for the font weight

◆ CSS_KEY_LINEHEIGHT

const string iTextSharp.text.html.Markup.CSS_KEY_LINEHEIGHT = "line-height"
static

the CSS tag for text decorations

◆ CSS_KEY_MARGIN

const string iTextSharp.text.html.Markup.CSS_KEY_MARGIN = "margin"
static

the CSS tag for the margin of an object

◆ CSS_KEY_MARGINBOTTOM

const string iTextSharp.text.html.Markup.CSS_KEY_MARGINBOTTOM = "margin-bottom"
static

the CSS tag for the margin of an object

◆ CSS_KEY_MARGINLEFT

const string iTextSharp.text.html.Markup.CSS_KEY_MARGINLEFT = "margin-left"
static

the CSS tag for the margin of an object

◆ CSS_KEY_MARGINRIGHT

const string iTextSharp.text.html.Markup.CSS_KEY_MARGINRIGHT = "margin-right"
static

the CSS tag for the margin of an object

◆ CSS_KEY_MARGINTOP

const string iTextSharp.text.html.Markup.CSS_KEY_MARGINTOP = "margin-top"
static

the CSS tag for the margin of an object

◆ CSS_KEY_PADDING

const String iTextSharp.text.html.Markup.CSS_KEY_PADDING = "padding"
static

the CSS tag for the margin of an object

◆ CSS_KEY_PADDINGBOTTOM

const String iTextSharp.text.html.Markup.CSS_KEY_PADDINGBOTTOM = "padding-bottom"
static

the CSS tag for the margin of an object

◆ CSS_KEY_PADDINGLEFT

const String iTextSharp.text.html.Markup.CSS_KEY_PADDINGLEFT = "padding-left"
static

the CSS tag for the margin of an object

◆ CSS_KEY_PADDINGRIGHT

const String iTextSharp.text.html.Markup.CSS_KEY_PADDINGRIGHT = "padding-right"
static

the CSS tag for the margin of an object

◆ CSS_KEY_PADDINGTOP

const String iTextSharp.text.html.Markup.CSS_KEY_PADDINGTOP = "padding-top"
static

the CSS tag for the margin of an object

◆ CSS_KEY_PAGE_BREAK_AFTER

const string iTextSharp.text.html.Markup.CSS_KEY_PAGE_BREAK_AFTER = "page-break-after"
static

the CSS tag for adding a page break when the document is printed

◆ CSS_KEY_PAGE_BREAK_BEFORE

const string iTextSharp.text.html.Markup.CSS_KEY_PAGE_BREAK_BEFORE = "page-break-before"
static

the CSS tag for adding a page break when the document is printed

◆ CSS_KEY_TEXTALIGN

const string iTextSharp.text.html.Markup.CSS_KEY_TEXTALIGN = "text-align"
static

the CSS tag for the horizontal alignment of an object

◆ CSS_KEY_TEXTDECORATION

const string iTextSharp.text.html.Markup.CSS_KEY_TEXTDECORATION = "text-decoration"
static

the CSS tag for text decorations

◆ CSS_KEY_VERTICALALIGN

const string iTextSharp.text.html.Markup.CSS_KEY_VERTICALALIGN = "vertical-align"
static

the CSS tag for text decorations

◆ CSS_KEY_VISIBILITY

const string iTextSharp.text.html.Markup.CSS_KEY_VISIBILITY = "visibility"
static

the CSS tag for the visibility of objects

◆ CSS_VALUE_ALWAYS

const string iTextSharp.text.html.Markup.CSS_VALUE_ALWAYS = "always"
static

value for the CSS tag for adding a page break when the document is printed

◆ CSS_VALUE_BLOCK

const string iTextSharp.text.html.Markup.CSS_VALUE_BLOCK = "block"
static

A possible value for the DISPLAY key

◆ CSS_VALUE_BOLD

const string iTextSharp.text.html.Markup.CSS_VALUE_BOLD = "bold"
static

a CSS value for text font weight

◆ CSS_VALUE_HIDDEN

const string iTextSharp.text.html.Markup.CSS_VALUE_HIDDEN = "hidden"
static

the value if you want to hide objects.

◆ CSS_VALUE_INLINE

const string iTextSharp.text.html.Markup.CSS_VALUE_INLINE = "inline"
static

A possible value for the DISPLAY key

◆ CSS_VALUE_ITALIC

const string iTextSharp.text.html.Markup.CSS_VALUE_ITALIC = "italic"
static

a CSS value for text font style

◆ CSS_VALUE_LINETHROUGH

const string iTextSharp.text.html.Markup.CSS_VALUE_LINETHROUGH = "line-through"
static

a CSS value for text decoration

◆ CSS_VALUE_LISTITEM

const string iTextSharp.text.html.Markup.CSS_VALUE_LISTITEM = "list-item"
static

A possible value for the DISPLAY key

◆ CSS_VALUE_NONE

const string iTextSharp.text.html.Markup.CSS_VALUE_NONE = "none"
static

a CSS value

◆ CSS_VALUE_NORMAL

const string iTextSharp.text.html.Markup.CSS_VALUE_NORMAL = "normal"
static

a CSS value

◆ CSS_VALUE_OBLIQUE

const string iTextSharp.text.html.Markup.CSS_VALUE_OBLIQUE = "oblique"
static

a CSS value for text font style

◆ CSS_VALUE_TABLE

const string iTextSharp.text.html.Markup.CSS_VALUE_TABLE = "table"
static

A possible value for the DISPLAY key

◆ CSS_VALUE_TABLECELL

const string iTextSharp.text.html.Markup.CSS_VALUE_TABLECELL = "table-cell"
static

A possible value for the DISPLAY key

◆ CSS_VALUE_TABLEROW

const string iTextSharp.text.html.Markup.CSS_VALUE_TABLEROW = "table-row"
static

A possible value for the DISPLAY key

◆ CSS_VALUE_TEXTALIGNCENTER

const string iTextSharp.text.html.Markup.CSS_VALUE_TEXTALIGNCENTER = "center"
static

the CSS value for a horizontal alignment of an object

◆ CSS_VALUE_TEXTALIGNJUSTIFY

const string iTextSharp.text.html.Markup.CSS_VALUE_TEXTALIGNJUSTIFY = "justify"
static

the CSS value for a horizontal alignment of an object

◆ CSS_VALUE_TEXTALIGNLEFT

const string iTextSharp.text.html.Markup.CSS_VALUE_TEXTALIGNLEFT = "left"
static

the CSS value for a horizontal alignment of an object

◆ CSS_VALUE_TEXTALIGNRIGHT

const string iTextSharp.text.html.Markup.CSS_VALUE_TEXTALIGNRIGHT = "right"
static

the CSS value for a horizontal alignment of an object

◆ CSS_VALUE_UNDERLINE

const string iTextSharp.text.html.Markup.CSS_VALUE_UNDERLINE = "underline"
static

a CSS value for text decoration

◆ DEFAULT_FONT_SIZE

const float iTextSharp.text.html.Markup.DEFAULT_FONT_SIZE = 12f
static

a default value for font-size

Since
2.1.3

◆ HTML_ATTR_CSS_CLASS

const string iTextSharp.text.html.Markup.HTML_ATTR_CSS_CLASS = "class"
static

attribute for specifying externally defined CSS class

◆ HTML_ATTR_CSS_ID

const string iTextSharp.text.html.Markup.HTML_ATTR_CSS_ID = "id"
static

The ID attribute.

◆ HTML_ATTR_HEIGHT

const string iTextSharp.text.html.Markup.HTML_ATTR_HEIGHT = "height"
static

the height attribute.

◆ HTML_ATTR_HREF

const string iTextSharp.text.html.Markup.HTML_ATTR_HREF = "href"
static

the hyperlink reference attribute.

◆ HTML_ATTR_REL

const string iTextSharp.text.html.Markup.HTML_ATTR_REL = "rel"
static

This is a possible HTML attribute for the LINK tag.

◆ HTML_ATTR_STYLE

const string iTextSharp.text.html.Markup.HTML_ATTR_STYLE = "style"
static

This is used for inline css style information

◆ HTML_ATTR_STYLESHEET

const string iTextSharp.text.html.Markup.HTML_ATTR_STYLESHEET = "stylesheet"
static

This is a possible HTML attribute.

◆ HTML_ATTR_TYPE

const string iTextSharp.text.html.Markup.HTML_ATTR_TYPE = "type"
static

This is a possible HTML attribute for the LINK tag.

◆ HTML_ATTR_WIDTH

const string iTextSharp.text.html.Markup.HTML_ATTR_WIDTH = "width"
static

the width attribute.

◆ HTML_TAG_BODY

const string iTextSharp.text.html.Markup.HTML_TAG_BODY = "body"
static

the markup for the body part of a file

◆ HTML_TAG_DIV

const string iTextSharp.text.html.Markup.HTML_TAG_DIV = "div"
static

The DIV tag.

◆ HTML_TAG_LINK

const string iTextSharp.text.html.Markup.HTML_TAG_LINK = "link"
static

This is a possible HTML-tag.

◆ HTML_TAG_SPAN

const string iTextSharp.text.html.Markup.HTML_TAG_SPAN = "span"
static

The SPAN tag.

◆ HTML_VALUE_CSS

const string iTextSharp.text.html.Markup.HTML_VALUE_CSS = "text/css"
static

This is a possible HTML attribute for the LINK tag.

◆ HTML_VALUE_JAVASCRIPT

const string iTextSharp.text.html.Markup.HTML_VALUE_JAVASCRIPT = "text/javascript"
static

This is a possible value for the language attribute (SCRIPT tag).

◆ ITEXT_TAG

const string iTextSharp.text.html.Markup.ITEXT_TAG = "tag"
static

the key for any tag


The documentation for this class was generated from the following file: