IDocumentCreateElement Method |
Creates and returns a new DOM element with the specified tag name.
Namespace:
DotNetBrowser.Dom
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.25.1
Syntax IElement CreateElement(
string tagName
)
Parameters
- tagName
- Type: SystemString
the tag name (e.g. "A", "P", "DIV") of the new DOM element.
Return Value
Type:
IElementthe new
IElement or null if the
tagName is incorrect.
Exceptions Exception | Condition |
---|
ArgumentException | The tagName is null, empty, or contains only blank characters. |
See Also