TextBuffer.insert

void insert(int pos, string content)

Inserts text at a position.

Parameters

posPosition to insert at
contentText to insert