System.Windows.Forms.HtmlElement.InnerText Property

Gets or sets the text assigned to the element.

Syntax

public string InnerText { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If you attempt to assign HTML to an element with HtmlElement.InnerText, the HTML code will display as literals in the document, just as if you were viewing HTML within a text file. If you assign HTML to an element using the HtmlElement.InnerHtml property, HtmlElement.InnerText will return all of the text in that HTML with the markup removed.

Assigning a value to HtmlElement.InnerText will destroy any child elements that belong to the element.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0