public boolean checkPosition(int position) {Iterator<PositionSpan> positionSpanIt = positionSpans.iterator();while (positionSpanIt.hasNext()) {PositionSpan posSpan = positionSpanIt.next();if (((position >= posSpan.start) && (position <= posSpan.end))) {return true;}}return false;}

public boolean checkPosition ( int position ) { Iterator < PositionSpan > positionSpanIt = positionSpans . iterator ( ) ; while ( positionSpanIt . hasNext ( ) ) { PositionSpan posSpan = positionSpanIt . next ( ) ; if ( ( ( position >= posSpan . start ) && ( position <= posSpan . end ) ) ) { return true ; } } return false ; }
public virtual bool CheckPosition(int position){foreach (var positionSpan in _positionSpans){if ((position >= positionSpan.Start) && (position <= positionSpan.End)){return true;}}return false;}
