Click or drag to resize

IDocumentCreateElement Method

Creates and returns a new DOM element with the specified tag name.

Namespace:  DotNetBrowser.Dom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.2
Syntax
C#
IElement CreateElement(
	string tagName
)

Parameters

tagName
Type: SystemString
the tag name (e.g. "A", "P", "DIV") of the new DOM element.

Return Value

Type: IElement
the new IElement or null if the tagName is incorrect.
Exceptions
ExceptionCondition
ArgumentExceptionThe tagName is null, empty, or contains only blank characters.
See Also