RichTextBox CaretPosition physical location
Posted
by Jan Kratochvil
on Stack Overflow
See other posts from Stack Overflow
or by Jan Kratochvil
Published on 2010-02-04T19:16:12Z
Indexed on
2010/04/21
16:03 UTC
Read the original article
Hit count: 549
Hi, I'm using a RichTextBox class to make some automatic text formatting. And mz question is, how do I get the RichTextBox to put some string immediately after the caret. When I use RichTextBox.CaretPosition.InsertTextInRun("some string") the text is inserted after the current logical block, but I need to be insterted immediately after the caret, in the middle of a Run block. I hope it's clear, thx very much.
© Stack Overflow or respective owner