I am creating a simple WPF text editor through the Text Formatter API . I have already completed some basic functions, and now I need to add carriage support. I also have a visual carriage (only a line with blinking animations) that needs to be in sync with the rendered text. I found a bunch of methods in the TextLine class, for example GetNextCaretCharacterHit , GetPreviousCaretCharacterHit , GetBackspaceCaretCharacterHit . But the documentary information about them ... is rather scarce. Can someone who has some experience in this area explain how to deal with these methods, because I hardly know about it? I tried to find information on the Internet, but as a result I did not find anything.
I would be grateful for any help!
source share