Constructor HtmlElement
- Namespace
- TinyComponents
- Assembly
- TinyComponents.dll
HtmlElement()
Initializes a new instance of the HtmlElement class with no container HTML element.
public HtmlElement()
HtmlElement(string)
Initializes a new instance of the HtmlElement class with the specified tag name.
public HtmlElement(string tagName)
Parameters
tagNamestringThe name of the tag to be used for the HTML element. The tag name will be converted to lowercase.
HtmlElement(string, object?)
Initializes a new instance of the HtmlElement class with the specified tag name and content.
public HtmlElement(string tagName, object? content)
Parameters
tagNamestringThe name of the tag to be used for the HTML element. The tag name will be converted to lowercase.
contentobjectOptional parameter that defines content for the creating HTML tag.
HtmlElement(string, string?)
Initializes a new instance of the HtmlElement class with the specified tag name and content.
public HtmlElement(string tagName, string? content)
Parameters
tagNamestringThe name of the tag to be used for the HTML element. The tag name will be converted to lowercase.
contentstringOptional parameter that defines content for the creating HTML tag.
HtmlElement(string, Action<HtmlElement>)
Initializes a new instance of the HtmlElement class with the specified tag name.
public HtmlElement(string tagName, Action<HtmlElement> content)
Parameters
tagNamestringThe name of the tag to be used for the HTML element. The tag name will be converted to lowercase.
contentAction<HtmlElement>Optional parameter that defines content for the creating HTML tag.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語