This class creates a document on the first call to GetNavigator(), and returns a Navigator from it. On subsequent calls, Navigators from the same document are returned (no new document is created).
コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        /// <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);
        }
コード例 #4
0
        /// <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);
        }
コード例 #5
0
        //-----------------------------------------------
        // 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();
        }
コード例 #6
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that)
 {
     _text    = that._text;
     _baseUri = that._baseUri;
     _constr  = that._constr;
 }
コード例 #7
0
        //-----------------------------------------------
        // 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();
        }
コード例 #8
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTreeNavigator(RtfTreeNavigator that)
 {
     _events    = that._events;
     _constr    = that._constr;
     _nameTable = that._nameTable;
 }
コード例 #9
0
ファイル: RtfNavigator.cs プロジェクト: Corillian/corefx
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTreeNavigator(RtfTreeNavigator that)
 {
     _events = that._events;
     _constr = that._constr;
     _nameTable = that._nameTable;
 }
コード例 #10
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that)
 {
     this.text    = that.text;
     this.baseUri = that.baseUri;
     this.constr  = that.constr;
 }
コード例 #11
0
 /// <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;
 }
コード例 #12
0
        //-----------------------------------------------
        // 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;
        }
コード例 #13
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTreeNavigator(RtfTreeNavigator that) {
     this.events = that.events;
     this.constr = that.constr;
     this.nameTable = that.nameTable;
 }
コード例 #14
0
        //-----------------------------------------------
        // 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;
        }
コード例 #15
0
ファイル: RtfNavigator.cs プロジェクト: Corillian/corefx
 /// <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;
 }
コード例 #16
0
ファイル: RtfNavigator.cs プロジェクト: Corillian/corefx
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that)
 {
     _text = that._text;
     _baseUri = that._baseUri;
     _constr = that._constr;
 }
コード例 #17
0
ファイル: RtfNavigator.cs プロジェクト: Corillian/corefx
        //-----------------------------------------------
        // 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();
        }
コード例 #18
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTreeNavigator(RtfTreeNavigator that)
 {
     this.events    = that.events;
     this.constr    = that.constr;
     this.nameTable = that.nameTable;
 }
コード例 #19
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public RtfTextNavigator(RtfTextNavigator that) {
     this.text = that.text;
     this.baseUri = that.baseUri;
     this.constr = that.constr;
 }
コード例 #20
0
        //-----------------------------------------------
        // 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();
        }
コード例 #21
0
 /// <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;
 }
コード例 #22
0
        //-----------------------------------------------
        // 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;
        }
コード例 #23
0
ファイル: RtfNavigator.cs プロジェクト: Corillian/corefx
        //-----------------------------------------------
        // 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;
        }