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

Support for strike through?

Hi,

Does the HtmlUIControl support the tags?

We are using Essential Studio 4.4.0.51 and it does not appear to render those tags.

Thanks!



2 Replies

RA Ramu Syncfusion Team October 24, 2007 08:14 PM UTC

Hi,

Could you please create a DirectTrac incident in this regard since this is suspected to be a feature and we can discuss further on this issue.

Please specify the Forum Id in the subject line of the incident.

Thank you for your interest in Syncfusion products.

Best regards,
Ramu


NR Nandakumar R Syncfusion Team October 24, 2007 08:59 PM UTC

Hi,

Thank you for your interest in Syncfusion Essential HTMLUI.

The HTMLUI control does not provide support for the tags: s, strike and del for now. But, these are reported to our developers as a feature request. We will update you once the support for these tags are implemented.

At the same time, the strike through functionality in the HTMLUI control can be achieved through the CSS - Text Decoration. With the help of this support, we can invoke this css in the code to support the s, strike and the del tags. Please refer the below code snippet that explains about how we can achieve the required behaviour through code.


[C#]
using Syncfusion.Windows.Forms.HTMLUI;

IHTMLElement[] strike;
private void htmluiControl1_LoadFinished(object sender, System.EventArgs e)
{
//Get the elements with the tag name strike
this.strike = this.htmluiControl1.Document.GetElementsByName("strike");

foreach (IHTMLElement elem in strike)
{
//Apply the specific css setting
this.htmluiControl1.LoadCSSFromString("strike {text-decoration: line-through}");
}
}


http://www.syncfusion.com/support/user/uploads/F69308_1daa6f61.png"/>

Sample:

http://websamples.syncfusion.com/samples/HTMLUI/F69308/main.htm

Please try this and let me know if this helps.

Regards,
Nanda



Loader.
Live Chat Icon For mobile
Up arrow icon