// Token: 0x06007C9D RID: 31901 RVA: 0x00230FE4 File Offset: 0x0022F1E4
 private ITextPointer GetNextBackwardPosition(StaticTextPointer pos)
 {
     for (int i = this._segments.Count - 1; i >= 0; i--)
     {
         AnnotationHighlightLayer.HighlightSegment highlightSegment = this._segments[i];
         if (pos.CompareTo(highlightSegment.Segment.End) > 0)
         {
             return(highlightSegment.Segment.End);
         }
         if (pos.CompareTo(highlightSegment.Segment.Start) > 0)
         {
             return(highlightSegment.Segment.Start);
         }
     }
     return(null);
 }
 // Token: 0x06007C9C RID: 31900 RVA: 0x00230F64 File Offset: 0x0022F164
 private ITextPointer GetNextForwardPosition(StaticTextPointer pos)
 {
     for (int i = 0; i < this._segments.Count; i++)
     {
         AnnotationHighlightLayer.HighlightSegment highlightSegment = this._segments[i];
         if (pos.CompareTo(highlightSegment.Segment.Start) < 0)
         {
             return(highlightSegment.Segment.Start);
         }
         if (pos.CompareTo(highlightSegment.Segment.End) < 0)
         {
             return(highlightSegment.Segment.End);
         }
     }
     return(null);
 }