I'm creating simple WPF text editor via Text Formatter API. I've already done some of the basic functionality and now I need to add a caret support. I also have a visual caret (just a line with blinking animation) that should be synchronized with rendered text. I found a bunch of methods in TextLine class, such as GetNextCaretCharacterHit , GetPreviousCaretCharacterHit , GetBackspaceCaretCharacterHit . But the documentation information about them is ...quite scarce. Could somebody who has some experience in that field explain how to deal with these methods, because I have almost no idea about that? I tried to search the information in the internet, but as a result I found nothing.
I would be grateful for any help!