[MonoDevelop] ITextIterator
Lluis Sanchez
lluis at ximian.com
Tue Nov 29 16:33:17 EST 2005
El mar, 29-11-2005 a las 21:01 +0100, Jacob Ilsø Christensen escribió:
> Hi.
>
> I am hacking a bit at the searching stuff and was wondering what the
> semantics are for the ITextIterator MoveAhead method.
>
> If the iterator is in state Resetted, MoveAhead does not move the
> iterator forward. It only changes state to Iterating as well as
> setting the position to endOffset. Should it not set the state to
> Iterating AND move the iterator forward?
It has the same semantics as IEnumerator.MoveNext(), that is, you need
to call MoveNext before you can get the first element.
Lluis.
>
> /Jacob
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
More information about the Monodevelop-list
mailing list