Thank you Rachel. I tried out the provided solution and it works when I add a text box to the image editor as follows
imgEditor.AddText("Enter Text", new TextSettings());
The label below the editor shows the string "Enter Text" which is what I want.
When I click on the "Enter Text" text box, a dialog pops up where I can change the text so I change it to "ABC" and hit OK. But this new value does not get reflected in the Label below the SfImageEditor. How can I fix this?
I have to click someplace else on the image and then click the textbox again for the new text "ABC" to get reflected on the label...
Would I be able to use data binding to solve this problem or is there another way?