示例#1
0
 // Token: 0x06002BFB RID: 11259 RVA: 0x000C7F0A File Offset: 0x000C610A
 int ITextPointer.MoveByOffset(int offset)
 {
     if (this._isFrozen)
     {
         throw new InvalidOperationException(SR.Get("TextPositionIsFrozen"));
     }
     if (DocumentSequenceTextPointer.iScan(this, offset))
     {
         return(offset);
     }
     return(0);
 }
        //------------------------------------------------------
        //
        //  Public Events
        //
        //------------------------------------------------------

        //------------------------------------------------------
        //
        //  Internal Properties
        //
        //------------------------------------------------------

        //------------------------------------------------------
        //
        //  Public Methods
        //
        //------------------------------------------------------

        #region TextNavigator Methods

        /// <summary>
        /// <see cref="ITextPointer.MoveByOffset"/>
        /// </summary>
        bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction)
        {
            Debug.Assert(!_isFrozen, "Can't reposition a frozen pointer!");
            return(DocumentSequenceTextPointer.iScan(this, direction));
        }
示例#3
0
 // Token: 0x06002BFA RID: 11258 RVA: 0x000C7F01 File Offset: 0x000C6101
 bool ITextPointer.MoveToNextContextPosition(LogicalDirection direction)
 {
     return(DocumentSequenceTextPointer.iScan(this, direction));
 }