Articles in this section
Category / Section

How to add text after image is loaded in Xamarin.Forms Image Editor (SfImageEditor)?

4 mins read

This section explains how to add text programmatically in Xamarin.Forms Image Editor when image editor is loaded in a view.

 Create SfImageEditor sample with all necessary assemblies.

 Please refer the below link to create a simple SfImageEditor sample along with the ways to configure it.


To add text  programmatically when imageeditor loaded in a view in two types such as


  1.Without Image

  2.With Image 


Without Image:

  To add text, you need to call AddText() method when loading image editor  in sample as like below code snippet


   Device.StartTimer(TimeSpan.FromMilliseconds(1000), () =>
                 editor.AddText("Text", new TextSettings());
                    return false;

Screen Shot:



Sample Link:


With Image:

  To add text when loading image editor with image, you need to call image loaded event as like below code snippet


editor.ImageLoaded += (Object sender, ImageLoadedEventArgs args) =>
                  editor.AddText("Text", new TextSettings());


Screen Shot:


Xamarin.Forms Image Editor with image




Sample Link:  


I hope you enjoyed learning about how to add text after image is loaded in Xamarin.Forms ImageEditor.

You can refer to our Xamarin Image Editor's feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Xamarin Image Editor example to understand how to create and manipulate data.

For current customers, you can check out our Xamarion controls from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment