MailBee.NET Objects 4.0

Element.InnerHtml Property

Gets or sets the inner HTML contents of the current HTML element.

public string InnerHtml {get; set;}

Property Value

A string containing the inner HTML data enclosed between opening and closing tags of the current element, or an empty string if there is no content in the current HTML element. It's never a null reference (Nothing in Visual Basic).

Remarks

If the current element is not an HTML tag but rather a block of plain text, InnerHtml and OuterHtml properties will return the same value (the plain text contents).

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException value is a null reference (Nothing in Visual Basic).

Example

The example is available in Element topic.

See Also

Element Class | MailBee.Html Namespace | OuterHtml