Hi Muralidaran,
Thank you for contacting Syncfusion support.
This reported requirement can be achieved by using functions named SetUnderline, RemoveUnderline, SelectLine, ResetSelection in EditControl. Please make use of below code snippet to achieve this reported requirement.
Code Snippet: [C#]
// Select the line for which Underline needs to be added
this.editControl1.SelectLine(this.editControl1.CurrentLine);
if (this.editControl1.Selection != null)
{
// To draw underline
this.editControl1.SetUnderline(this.editControl1.Selection.Top, this.editControl1.Selection.Bottom, format);
}
// To remove the selection
this.editControl1.ResetSelection();
|
We have also prepared sample for this reported requirement and it can be downloaded from below location.
Kindly check the above solution and let us know if it helps.
Regards
Kannan