/// <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) { _text = that._text; _baseUri = that._baseUri; _constr = that._constr; return(true); } return(false); }
/// <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> /// 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) { RtfTreeNavigator?that = other as RtfTreeNavigator; if (that != null) { _events = that._events; _constr = that._constr; _nameTable = that._nameTable; return(true); } return(false); }
/// <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) { RtfTreeNavigator that = other as RtfTreeNavigator; if (that != null) { this.events = that.events; this.constr = that.constr; this.nameTable = that.nameTable; return(true); } return(false); }
//----------------------------------------------- // Constructors //----------------------------------------------- /// <summary> /// Create a new navigator having a text node with value = "text" string. /// </summary> public RtfTextNavigator(string text, string baseUri) { this.text = text; this.baseUri = baseUri; this.constr = new NavigatorConstructor(); }
/// <summary> /// Copy constructor. /// </summary> public RtfTextNavigator(RtfTextNavigator that) { _text = that._text; _baseUri = that._baseUri; _constr = that._constr; }
//----------------------------------------------- // Constructors //----------------------------------------------- /// <summary> /// Create a new navigator having a text node with value = "text" string. /// </summary> public RtfTextNavigator(string text, string baseUri) { _text = text; _baseUri = baseUri; _constr = new NavigatorConstructor(); }
/// <summary> /// Copy constructor. /// </summary> public RtfTreeNavigator(RtfTreeNavigator that) { _events = that._events; _constr = that._constr; _nameTable = that._nameTable; }
/// <summary> /// Copy constructor. /// </summary> public RtfTextNavigator(RtfTextNavigator that) { this.text = that.text; this.baseUri = that.baseUri; this.constr = that.constr; }
/// <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) { RtfTreeNavigator that = other as RtfTreeNavigator; if (that != null) { this.events = that.events; this.constr = that.constr; this.nameTable = that.nameTable; return true; } return false; }
//----------------------------------------------- // Constructors //----------------------------------------------- /// <summary> /// Create a new navigator over the specified cache of Xml events. /// </summary> public RtfTreeNavigator(XmlEventCache events, XmlNameTable nameTable) { this.events = events; this.constr = new NavigatorConstructor(); this.nameTable = nameTable; }
/// <summary> /// Copy constructor. /// </summary> public RtfTreeNavigator(RtfTreeNavigator that) { this.events = that.events; this.constr = that.constr; this.nameTable = that.nameTable; }
/// <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) { _text = that._text; _baseUri = that._baseUri; _constr = that._constr; return true; } return false; }
/// <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; }
//----------------------------------------------- // Constructors //----------------------------------------------- /// <summary> /// Create a new navigator over the specified cache of Xml events. /// </summary> public RtfTreeNavigator(XmlEventCache events, XmlNameTable nameTable) { _events = events; _constr = new NavigatorConstructor(); _nameTable = nameTable; }