public bool MoveNext()
{
if (index >= strLen)
{
// Make the index to be greater than strLen so that we can throw exception if GetTextElement() is called.
index = strLen + 1;
return (false);
}
currTextElementLen = StringInfo.GetCurrentTextElementLen(str, index, strLen, ref uc, ref charLen);
index += currTextElementLen;
return (true);
}