[corlib] Removes unused method
[mono-project.git] / docs / HtmlAgilityPack / HtmlTextNode.cs
blobcdf8bcedfebb2bca9a641d1a35b00e2d82ed13ff
1 // HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
2 namespace HtmlAgilityPack
4 /// <summary>
5 /// Represents an HTML text node.
6 /// </summary>
7 public class HtmlTextNode : HtmlNode
9 #region Fields
11 private string _text;
13 #endregion
15 #region Constructors
17 internal HtmlTextNode(HtmlDocument ownerdocument, int index)
19 base(HtmlNodeType.Text, ownerdocument, index)
23 #endregion
25 #region Properties
27 /// <summary>
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.
29 /// </summary>
30 public override string InnerHtml
32 get { return OuterHtml; }
33 set { _text = value; }
36 /// <summary>
37 /// Gets or Sets the object and its content in HTML.
38 /// </summary>
39 public override string OuterHtml
41 get
43 if (_text == null)
45 return base.OuterHtml;
47 return _text;
51 /// <summary>
52 /// Gets or Sets the text of the node.
53 /// </summary>
54 public string Text
56 get
58 if (_text == null)
60 return base.OuterHtml;
62 return _text;
64 set { _text = value; }
67 #endregion