iText 7 7.1.9 API
iText.StyledXmlParser.Node.IElementNode Interface Reference

Interface for node classes that have a parent and children, and for which styles can be defined; each of these nodes can also have a name and attributes. More...

Inheritance diagram for iText.StyledXmlParser.Node.IElementNode:
iText.StyledXmlParser.Node.INode iText.StyledXmlParser.Node.IStylesContainer iText.StyledXmlParser.Css.Pseudo.CssPseudoElementNode iText.StyledXmlParser.Css.Resolve.CssContentElementNode iText.StyledXmlParser.Node.ICustomElementNode iText.StyledXmlParser.Node.IDocumentNode iText.StyledXmlParser.Node.Impl.Jsoup.Node.JsoupElementNode iText.StyledXmlParser.Css.Pseudo.CssPseudoElementNode iText.StyledXmlParser.Css.Resolve.CssContentElementNode iText.StyledXmlParser.Node.Impl.Jsoup.Node.JsoupDocumentNode iText.StyledXmlParser.Node.Impl.Jsoup.Node.JsoupDocumentNode

Public Member Functions

String Name ()
 Gets the name of the element node. More...
 
IAttributes GetAttributes ()
 Gets the attributes. More...
 
String GetAttribute (String key)
 Gets an attribute. More...
 
IList< IDictionary< String, String > > GetAdditionalHtmlStyles ()
 Gets additional styles, more specifically styles that affect an element based on its position in the HTML DOM, e.g. cell borders that are set due to the parent table "border" attribute, or styles from "col" tags that affect table elements, or blocks horizontal alignment that is the result of parent's "align" attribute. More...
 
void AddAdditionalHtmlStyles (IDictionary< String, String > styles)
 Adds additional HTML styles. More...
 
String GetLang ()
 Gets the language. More...
 
- Public Member Functions inherited from iText.StyledXmlParser.Node.INode
IList< INodeChildNodes ()
 Gets the child nodes. More...
 
void AddChild (INode node)
 Adds a child node. More...
 
INode ParentNode ()
 Gets the parent node. More...
 
- Public Member Functions inherited from iText.StyledXmlParser.Node.IStylesContainer
void SetStyles (IDictionary< String, String > stringStringMap)
 Sets the styles. More...
 
IDictionary< String, String > GetStyles ()
 Gets the styles. More...
 

Detailed Description

Interface for node classes that have a parent and children, and for which styles can be defined; each of these nodes can also have a name and attributes.

Member Function Documentation

◆ AddAdditionalHtmlStyles()

void iText.StyledXmlParser.Node.IElementNode.AddAdditionalHtmlStyles ( IDictionary< String, String >  styles)

◆ GetAdditionalHtmlStyles()

IList<IDictionary<String, String> > iText.StyledXmlParser.Node.IElementNode.GetAdditionalHtmlStyles ( )

Gets additional styles, more specifically styles that affect an element based on its position in the HTML DOM, e.g. cell borders that are set due to the parent table "border" attribute, or styles from "col" tags that affect table elements, or blocks horizontal alignment that is the result of parent's "align" attribute.

Returns
the additional html styles

Implemented in iText.StyledXmlParser.Node.Impl.Jsoup.Node.JsoupElementNode, iText.StyledXmlParser.Css.Pseudo.CssPseudoElementNode, and iText.StyledXmlParser.Css.Resolve.CssContentElementNode.

◆ GetAttribute()

String iText.StyledXmlParser.Node.IElementNode.GetAttribute ( String  key)

Gets an attribute.

Parameters
keythe key of the attribute we want to get
Returns
the value of the attribute

Implemented in iText.StyledXmlParser.Node.Impl.Jsoup.Node.JsoupElementNode, iText.StyledXmlParser.Css.Pseudo.CssPseudoElementNode, and iText.StyledXmlParser.Css.Resolve.CssContentElementNode.

◆ GetAttributes()

IAttributes iText.StyledXmlParser.Node.IElementNode.GetAttributes ( )

◆ GetLang()

String iText.StyledXmlParser.Node.IElementNode.GetLang ( )

◆ Name()

String iText.StyledXmlParser.Node.IElementNode.Name ( )