I'm looking for an efficient way to find the character indexes of different font styles in a RichTextBox. I have the following:
for (var i = 0; i < index; i++)
{
_activeCopyBox.Select(i, 1);
if (!linkFound && _activeCopyBox.SelectionFont.Underline)
underLineFound = true;
}
This however is very slow as it has to select each letter one at a time. I can get the formatting out of the Rft but it is messy trying to find the correct index of the charater this way.
If someone knows a better way (there must be one) I'd love to hear it.
Thanks in advance.