Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RtfTextNavigator.cs
Go to the documentation of this file.
2
4
5internal sealed class RtfTextNavigator : RtfNavigator
6{
7 private string _text;
8
9 private string _baseUri;
10
12
13 public override string Value => _text;
14
15 public override string BaseURI => _baseUri;
16
17 public RtfTextNavigator(string text, string baseUri)
18 {
19 _text = text;
20 _baseUri = baseUri;
22 }
23
25 {
26 _text = that._text;
27 _baseUri = that._baseUri;
28 _constr = that._constr;
29 }
30
31 public override void CopyToWriter(XmlWriter writer)
32 {
33 writer.WriteString(Value);
34 }
35
36 public override XPathNavigator ToNavigator()
37 {
39 }
40
41 public override XPathNavigator Clone()
42 {
43 return new RtfTextNavigator(this);
44 }
45
46 public override bool MoveTo(XPathNavigator other)
47 {
49 {
50 _text = rtfTextNavigator._text;
51 _baseUri = rtfTextNavigator._baseUri;
52 _constr = rtfTextNavigator._constr;
53 return true;
54 }
55 return false;
56 }
57}
XPathNavigator GetNavigator(XmlEventCache events, XmlNameTable nameTable)
override XmlNameTable NameTable
RtfTextNavigator(string text, string baseUri)
override void CopyToWriter(XmlWriter writer)
override bool MoveTo(XPathNavigator other)