RichTextBox Span method

  • Thread starter Thread starter SamSpade
  • Start date Start date
S

SamSpade

The VB6 TextBox had a Span method to extend a selection.

Is there a similar capability in Dotnet?

I can't find it.


Thanks
 
You have to get the ITextDocument of the richtextbox and call the
Selection.Expand(tomWord) method ,see the msdn docs for ItextDocument
interface.
 
Thanks, that works

CaribSoft said:
You have to get the ITextDocument of the richtextbox and call the
Selection.Expand(tomWord) method ,see the msdn docs for ItextDocument
interface.
 
Back
Top