1 // HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
\r
2 namespace HtmlAgilityPack
\r
5 /// Represents an HTML text node.
\r
7 public class HtmlTextNode : HtmlNode
\r
11 private string _text;
\r
15 #region Constructors
\r
17 internal HtmlTextNode(HtmlDocument ownerdocument, int index)
\r
19 base(HtmlNodeType.Text, ownerdocument, index)
\r
28 /// Gets or Sets the HTML between the start and end tags of the object. In the case of a text node, it is equals to OuterHtml.
\r
30 public override string InnerHtml
\r
32 get { return OuterHtml; }
\r
33 set { _text = value; }
\r
37 /// Gets or Sets the object and its content in HTML.
\r
39 public override string OuterHtml
\r
45 return base.OuterHtml;
\r
52 /// Gets or Sets the text of the node.
\r
60 return base.OuterHtml;
\r
64 set { _text = value; }
\r