When I use editControl.SetLineBackColor, texts are cut off because of border color.

Hi~

I am using Editcontrol.
And I have 3 questions.

1. SetLineBackColor
I made a background color effect to increase visibility.
This is the code.

IBackgroundFormat format = editControl.RegisterBackColorFormat(Color.WhiteSmoke, Color.White);
                for (int i = 1; i <= editControl.CurrentLine; i++)
                {
                    if (i % 2 == 0)
                    {
                        editControl.SetLineBackColor(i, true, format);
                    }
                }

But there was a problem.



I have to use Hangul.
It should be printed like a notepad, but the text is broken on the editControl.
I think it's because of the Border.
It may be solved by not setting the border, setting the line spacing, or setting the Textarea margin.
But I can't find a way.
How can I handle this?

2. Selected
When I drag the text, the color is abnormal like a capture picture.

There is no other code than that code.
Is there a solution?

3. Performance
After that code was executed, text selection using drag became slow.
For reference, that code is executed only once the first time.

Please solve my questions and problems.
Thank you.


5 Replies 1 reply marked as answer

EM Elakkiya Muthukumarasamy Syncfusion Team January 7, 2021 01:33 PM UTC

Hi Nam, 

Greetings from Syncfusion 

We were able to reproduce a reported issues " While set the SetLineBackColor to the Hangul language text file cut off the text in EditControl "and  “While select the text (text with LineBackColor)not selected properly in Edit control” So, we have confirmed it is a defect and logged a report on this. The patch for this fix would be available on 28th January 2021.   
   
You can track the status of this defect using the following feedback link:   
   


Query: Performance issue in EditControl 

Can you please share the exact scenario which you are faced the performance issue with EditControl. Please share Screenshot or video to visualize your issue. It will helpful to provide the prompt solution for this issue. 

Regards, 
Elakkiya 



NK nam ki hun January 8, 2021 01:03 AM UTC

Thanks for your reply.
Upload a simple example code and sample txt file.
I recorded the screen, but I don't know where to put the mp4 file.
Uncommenting single line of code slows down drag performance.
Please check.

Attachment: problem_26a2ee3a.zip


EM Elakkiya Muthukumarasamy Syncfusion Team January 8, 2021 01:05 PM UTC

Hi Nam, 

Thanks for your update. 

Query: Performance issue in EditControl 

We have confirmed the reported behavior ”Text selection using drag is slow while set LineBackColor in EditControl” is a defect and logged a report on this. The patch for this fix is estimated to be available on 29th  Jan, 2021.  
  
Feedback link to track the status of this defect.  
  

Please let us know if you need any further assistance on this. 

Regards, 
Elakkiya 



VR Vijayalakshmi Roopkumar Syncfusion Team January 28, 2021 05:38 PM UTC

Hi Nam, 
 
Thank you for your patience. 
 
Issue 1: Text cut off while using SetLineBackColor: 
 
We are facing some complexities while fixing this issue. We will provide the patch by tomorrow(January 29th,2021) 
 
Issue 2: SetLineBackColor not working properly while select the text. 
 
This Issue has resolved. Please refer the attached patch. 
 
Patch on January 29th,2021: 
 
Issue 1: Performance issue while drag on text: 
 
This Issue has also been resolved and please it refer from the attached patch. 
 
Before fix: 
 
 
 
After fix: 
 
 
 
 
 
 
 
 
 
Assembly Version: 18.4.0.30 
   
Installation Directions:   
This patch should replace the files "Syncfusion.Edit.Windows” under the following folder.   
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\[TargetFramework]   
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\18.4.0.30\precompiledassemblies\18.4.0.30\4.6   
   
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you must manually copy and paste them to the preferred location or you must run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.   
   
   
Please try this patch and let us know if it is resolved at your end. 
   
Regards,   
Vijayalakshmi VR 



VR Vijayalakshmi Roopkumar Syncfusion Team January 29, 2021 12:11 PM UTC

Hi Nam, 
 
Thank you for your patience. 
 
Issue : Text Cut off while using SetLineBackColor 
 
On further analyzing this reported behavior, we can able to resolve in sample level by setting the font size in config.xml. When we set the proper font size, text won’t be cut off.  Please find the sample, screenshot for the same below: 
 
 
Screenshot: 
  
  
 
Please let us know if you have any other concerns 
Regards, 
Vijayalakshmi VR 


Marked as answer
Loader.
Up arrow icon