Interface IElementNode
- Namespace
- iText.StyledXmlParser.Node
- Assembly
- itext.styledxmlparser.dll
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.
public interface IElementNode : INode, IStylesContainer
- Inherited Members
Methods
AddAdditionalHtmlStyles(IDictionary<string, string>)
Adds additional HTML styles.
void AddAdditionalHtmlStyles(IDictionary<string, string> styles)
Parameters
styles
IDictionary<string, string>the styles
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.
IList<IDictionary<string, string>> GetAdditionalHtmlStyles()
Returns
- IList<IDictionary<string, string>>
the additional html styles
GetAttribute(string)
Gets an attribute.
string GetAttribute(string key)
Parameters
key
stringthe key of the attribute we want to get
Returns
- string
the value of the attribute
GetAttributes()
Gets the attributes.
IAttributes GetAttributes()
Returns
- IAttributes
the attributes
GetLang()
Gets the language.
string GetLang()
Returns
- string
the language value
Name()
Gets the name of the element node.
string Name()
Returns
- string
the string