Gets or sets the current element's text.
Public Property OuterText As String
public string OuterText { get; set; }
public: property String^ OuterText { String^ get (); void set (String^ value); }
member OuterText : string with get, set
You cannot set text outside of this element.
If you attempt to assign HTML to an element with OuterText, 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 InnerHtml property, OuterText will return all of the text in that HTML with the markup removed.
Assigning a value to OuterText will destroy any child elements that belong to the element.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2