We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Justify text inside of A TextLabel

Hi,

I would like to justify the text in my xamarin forms application but I'm not sure how to go about this or if I am using the right control. Is there perhaps a way a could go about this? The text is as follows: 


Kind Regards
Taahir 

4 Replies

DS Devaraj Sekar Syncfusion Team November 20, 2019 10:38 AM UTC

Hi Taahir, 
 
Thank you for contacting Syncfusion support. 
 
The mentioned requirement “Justify text inside of A TextLabel” is achievable in “SfRichTextEditor” using Alignment enum in ToolbarOptions. You can apply justification programmatically for the selected value in Rich Text Editor using AlignFull() method in API level. 
 
Toolbar with Alignment option: 
 
 
Kindly, let us know if you require any further assistance. 
 
Regards, 
Devaraj S 



TA Taahir November 20, 2019 01:20 PM UTC

Hi,

Thanks for your reply. 

How can we set the following properties in Xaml: 

1. Background colour of the editor area.
2. Text colour of the editor area.
3. Font of the text in the editor.
4. Justification of the text. 

What we would like to achieve is the same as in the image previously shown but with full justification. 

This is what we currently have:



DS Devaraj Sekar Syncfusion Team November 21, 2019 11:34 AM UTC

Hi Taahir, 
  
Thank you for the update. 
  
S. No 
Query 
Answer 
1.         
 Text colour of the editor area.  
The text color or Font color of RichTextEditor can be customized using FontColor and BackColor support in toolbar enum in ToolbarOptions.  
You can apply font color and back color programmatically for the selected value in Rich Text Editor SetFontColor() method and SetHighlightColor() in API level.  
2.         
Justification of the text.  
The mentioned requirement “Justify text inside of A TextLabel” is achievable in “SfRichTextEditor” using Alignment enum in ToolbarOptions. You can apply justification programmatically for the selected value in Rich Text Editor using AlignFull() method in API level.  
3.         
Font of the text in the editor.  
The requirement is already planned in our feature list which has been planned to add in any of our upcoming Essential Studio main release. The status of the mentioned support implementation can be tracked in the below link. 
  
4.         
Background colour of the editor area  
We are currently analyzing the feasibility of the mentioned support and will update you further details on 25 November 2019. 
  
Kindly, let us know if you require any further assistance. 
  
Regards, 
Devaraj S 



DS Devaraj Sekar Syncfusion Team November 25, 2019 12:20 PM UTC

Hi Taahir, 
  
Thank you for your patience. 
  
We have checked the feasibility of implementing the mentioned feature “Background colour of the editor area”. The feature implementation would also greatly depend on the factors such as product design, code compatibility and complexity. We don’t have any immediate plans to implement this feature considering other high priority commitments. At the planning stage for every release cycle, we review all open features. We will let you know when this feature is implemented. The status of implementation can be tracked through our Features Management System. 
  
  
Regards, 
Devaraj S 


Loader.
Live Chat Icon For mobile
Up arrow icon