MailBee.NET Objects 4.0

Element.TagName Property

Gets or sets the tag name of the current HTML element.

public string TagName {get; set;}

Property Value

A string name of the current HTML tag or a null reference (Nothing in Visual Basic) if the current Element object represents a plain-text block rather than a tag.

Remarks

Tag names are case-insensitive.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException value is an empty string.

Example

The example is available in Element topic.

See Also

Element Class | MailBee.Html Namespace