For doing your task you need:
1. Subscribe to the MouseClick event of annotation viewer when you need create text annotation
2. Create text annotation and add it to an image in annotation viewer when mouse is clicked on viewer