This RtfNavigator specializes the case of a root node having a single text node child. This is a very common case, such as in bar.
Inheritance: RtfNavigator
        /// <summary>
        /// Position this navigator to the same position as the "other" navigator.  If the "other" navigator
        /// is not of the same type as this navigator, then return false.
        /// </summary>
        public override bool MoveTo(XPathNavigator other)
        {
            RtfTextNavigator that = other as RtfTextNavigator;

            if (that != null)
            {
                this.text    = that.text;
                this.baseUri = that.baseUri;
                this.constr  = that.constr;
                return(true);
            }
            return(false);
        }
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that)
 {
     this.text    = that.text;
     this.baseUri = that.baseUri;
     this.constr  = that.constr;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that) {
     this.text = that.text;
     this.baseUri = that.baseUri;
     this.constr = that.constr;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that)
 {
     _text    = that._text;
     _baseUri = that._baseUri;
     _constr  = that._constr;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that)
 {
     _text = that._text;
     _baseUri = that._baseUri;
     _constr = that._constr;
 }