I have an app where I click a button and it inserts text in to a richtextbox, I can add the text at the end. but I want to know is how do I add text to the file at the point where the cursor is

i.e.

for all intents and purposes | will stand for the cursor

this that and the | thing

after the button it will say

this that and the other| thing