Hello,
I want to display formatted text on an UltraFormattedTextEditor, but some of the text has to be strikeout. It should look like this:
SMTWTFS
I would expect the UltraFormattedTextEditor to be able to show strikeout text, but it's not on the documentation so I guess it's not supported.
Is there any other way to show strikeout text?
You could set its Appearance.FontData.Strikeout property, but that will apply to every character. You could use the UltraFormattedTextEditor control, which supports mixed fonts within the same edit area.
Brian,
I agree with you. The UltraFormattedTextEditor should be the right way to go, but it doesn't seem to support strikeout text. I'm using version 8.2.20082.1000.
Is strikeout text supported in the latest version?
Hello Edo,
I have logged this as a development issue and created a support case for you so you can be notified of any updates about this issue.
Thanks Mike,
I will use your workaround above for the time being.
Hi,
I tested this out and it seems like there is a bug here. I can get text to show both underline and strikeout by setting the xml in code and using the <s> tag. For example:
<u><s>Underline and Strinkeout</s></u>
As to why there is no Strikout button in the UI, my best guess is that Strikeout functionality was added to the control at some later point after it was released and the dialog was never updated.
Regarding the Performaction(ToggleStrikeout) removing the underline, that seems like a bug to me.
I'm going to forward this thread over to Infragistics Developer Support and ask them to create a case for you and enter this as a bug for developer review.
Yes on the UI designer editor it seems that strikeout is not supported yet.But I found that we are able to add it by modify the editor or programmatically.
Using edited editor:Set the style as following<p style="text-decoration:line-through;">
Programmatically:EditInfo.PerformAction(FormattedLinkEditorAction.ToggleStrikeout);
But seems that currently it is not support underline and strikeout to be used both together?using the editor, I can choose only one of text-decoration whether "underline", "line-through", or "normal".I have tried to use comma and also specify text-decoration attribute twice, but none of them works.
And by programmatically, everytime I do PerformAction for strikeout or underline, it will always reset the other one.
// Text strikeoutEditInfo.PerformAction(FormattedLinkEditorAction.ToggleStrikeout);// Strikeout reset, only underline nowEditInfo.PerformAction(FormattedLinkEditorAction.ToggleUnderline);
Please let me know if there is another workaround to be able to use underline and strikeout both together.
Thanks.
I just took a look and it does not appear to support Strikeout text. This is most likely an oversight and you should Submit an incident to Infragistics Developer Support and report it as a bug.