I want to get the Caret position in RichTextBox in WPF when I change my cursor with Left Click Mouse Button and this picture below shows this.
TextPointer caretPos = rtb.CaretPosition;
Get position:
TextPointer tp = EditMessageRTB.Selection.Start;
Set position:
RichTextBox.CaretPosition = tp;
If want to set position to end:
RichTextBox.CaretPosition = RichTextBox.Document.Blocks.LastBlock.ContentEnd;
TextPointer caretPos = rtb.CaretPosition;
? – vik_78