Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Waher.Content.Html.Elements.Hn Class Reference

H<n> element More...

Inheritance diagram for Waher.Content.Html.Elements.Hn:
Waher.Content.Html.HtmlElement Waher.Content.Html.HtmlNode

Public Member Functions

 Hn (HtmlDocument Document, HtmlElement Parent, int StartPosition, int Level)
 H<n> element More...
 
bool TryGetAttribute (string Name, out HtmlAttribute Attribute)
 Tries to get an attribute from the element, by its name. More...
 
override string ToString ()
 
override void Export (XmlWriter Output)
 Exports the HTML document to XML. More...
 
override void Export (StringBuilder Output)
 Exports the HTML document to XML. More...
 
bool HasAttribute (string Name)
 If the element has an attribute with a given (case-insensitive) name. More...
 
string GetAttribute (string Name)
 Gets a given attribute value, if available. The empty string is returned if the attribute does not exist. More...
 

Properties

int Level [get]
 Header level. More...
 
string Name [get]
 Tag name. More...
 
string Namespace [get]
 Namespace, if provided, null if not. More...
 
bool HasChildren [get]
 If the element has children. More...
 
bool HasAttributes [get]
 If the element has attributes. More...
 
IEnumerable< HtmlNodeChildren [get]
 Child nodes, or null if none. More...
 
IEnumerable< HtmlAttributeAttributes [get]
 Attributes, or null if none. More...
 
string InnerHtml [get]
 Inner HTML More...
 
string InnerText [get]
 Inner Text More...
 
string StartTag [get]
 Start tag. More...
 
int EndPositionOfStartTag [get]
 End position of start tag. More...
 
virtual bool IsEmptyElement [get]
 If the element is an empty element. More...
 
HtmlDocument Document [get]
 HTML Document More...
 
HtmlNode Parent [get]
 Parent node, if available. More...
 
int StartPosition [get, set]
 Start position of element. More...
 
int EndPosition [get, set]
 End position of element. More...
 
string OuterHtml [get]
 Outer HTML More...
 

Detailed Description

H<n> element

Definition at line 10 of file Hn.cs.

Constructor & Destructor Documentation

◆ Hn()

Waher.Content.Html.Elements.Hn.Hn ( HtmlDocument  Document,
HtmlElement  Parent,
int  StartPosition,
int  Level 
)

H<n> element

Parameters
DocumentHTML Document.
ParentParent element. Can be null for root elements.
StartPositionStart position.
LevelHeader level.

Definition at line 21 of file Hn.cs.

Member Function Documentation

◆ Export() [1/2]

override void Waher.Content.Html.HtmlElement.Export ( StringBuilder  Output)
virtualinherited

Exports the HTML document to XML.

Parameters
OutputXML Output

Implements Waher.Content.Html.HtmlNode.

Definition at line 237 of file HtmlElement.cs.

◆ Export() [2/2]

override void Waher.Content.Html.HtmlElement.Export ( XmlWriter  Output)
virtualinherited

Exports the HTML document to XML.

Parameters
OutputXML Output

Implements Waher.Content.Html.HtmlNode.

Definition at line 211 of file HtmlElement.cs.

◆ GetAttribute()

string Waher.Content.Html.HtmlElement.GetAttribute ( string  Name)
inherited

Gets a given attribute value, if available. The empty string is returned if the attribute does not exist.

Parameters
NameCase-insensitive attribute name.
Returns
Attribute value.

Definition at line 302 of file HtmlElement.cs.

◆ HasAttribute()

bool Waher.Content.Html.HtmlElement.HasAttribute ( string  Name)
inherited

If the element has an attribute with a given (case-insensitive) name.

Parameters
NameCase-insensitive attribute name.
Returns
If such an attribute exists.

Definition at line 280 of file HtmlElement.cs.

◆ ToString()

override string Waher.Content.Html.HtmlElement.ToString ( )
inherited

Definition at line 202 of file HtmlElement.cs.

◆ TryGetAttribute()

bool Waher.Content.Html.HtmlElement.TryGetAttribute ( string  Name,
out HtmlAttribute  Attribute 
)
inherited

Tries to get an attribute from the element, by its name.

Parameters
NameAttribute name.
AttributeAttribute object, if found, null otherwise.
Returns
If attribute was found.

Definition at line 100 of file HtmlElement.cs.

Property Documentation

◆ Attributes

IEnumerable<HtmlAttribute> Waher.Content.Html.HtmlElement.Attributes
getinherited

Attributes, or null if none.

Definition at line 92 of file HtmlElement.cs.

◆ Children

IEnumerable<HtmlNode> Waher.Content.Html.HtmlElement.Children
getinherited

Child nodes, or null if none.

Definition at line 87 of file HtmlElement.cs.

◆ Document

HtmlDocument Waher.Content.Html.HtmlNode.Document
getinherited

HTML Document

Definition at line 49 of file HtmlNode.cs.

◆ EndPosition

int Waher.Content.Html.HtmlNode.EndPosition
getsetinherited

End position of element.

Definition at line 68 of file HtmlNode.cs.

◆ EndPositionOfStartTag

int Waher.Content.Html.HtmlElement.EndPositionOfStartTag
getinherited

End position of start tag.

Definition at line 187 of file HtmlElement.cs.

◆ HasAttributes

bool Waher.Content.Html.HtmlElement.HasAttributes
getinherited

If the element has attributes.

Definition at line 82 of file HtmlElement.cs.

◆ HasChildren

bool Waher.Content.Html.HtmlElement.HasChildren
getinherited

If the element has children.

Definition at line 77 of file HtmlElement.cs.

◆ InnerHtml

string Waher.Content.Html.HtmlElement.InnerHtml
getinherited

Inner HTML

Definition at line 114 of file HtmlElement.cs.

◆ InnerText

string Waher.Content.Html.HtmlElement.InnerText
getinherited

Inner Text

Definition at line 142 of file HtmlElement.cs.

◆ IsEmptyElement

virtual bool Waher.Content.Html.HtmlElement.IsEmptyElement
getinherited

If the element is an empty element.

Definition at line 273 of file HtmlElement.cs.

◆ Level

int Waher.Content.Html.Elements.Hn.Level
get

Header level.

Definition at line 30 of file Hn.cs.

◆ Name

string Waher.Content.Html.HtmlElement.Name
getinherited

Tag name.

Definition at line 36 of file HtmlElement.cs.

◆ Namespace

string Waher.Content.Html.HtmlElement.Namespace
getinherited

Namespace, if provided, null if not.

Definition at line 41 of file HtmlElement.cs.

◆ OuterHtml

string Waher.Content.Html.HtmlNode.OuterHtml
getinherited

Outer HTML

Definition at line 77 of file HtmlNode.cs.

◆ Parent

HtmlNode Waher.Content.Html.HtmlNode.Parent
getinherited

Parent node, if available.

Definition at line 54 of file HtmlNode.cs.

◆ StartPosition

int Waher.Content.Html.HtmlNode.StartPosition
getsetinherited

Start position of element.

Definition at line 59 of file HtmlNode.cs.

◆ StartTag

string Waher.Content.Html.HtmlElement.StartTag
getinherited

Start tag.

Definition at line 170 of file HtmlElement.cs.


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