How to remove Hyperlink underline?

How do I remove the underline from added hyperlinks in a presentation? I’ve tried this way, but that doesn’t seem to do anything. It is a requirement from our customer that the Hyperlinks are not underlined.


var hLink = new Hyperlink(new Hyperlink(_helper.Action(“Action”, “Controller”,
new RouteValueDictionary
{
{“id”, 5},
{“majorId”, 7}
}, “http”)), “”, “This is some text”, false, false, false);
var textFrame = dotShape.AddTextFrame(“This is the hyperlink text”);
textFrame.Paragraphs[0].Portions[0].PortionFormat.HyperlinkClick = hLink;
textFrame.Paragraphs[0].Portions[0].PortionFormat.FontUnderline = TextUnderlineType.None;

Hi Peter,

Thanks for inquiring Aspose.Slides.

I have observed the requirements shared by you and like to share that hyperlinked text cannot be set with underlining. I have even verified using PowerPoint and that too does not set the hyper link text without underlining. This is infact not an issue but an implementation carried in PowerPoint.

Many Thanks,

Ok, is it possible to change the font color of the hyperlink text?

Hi Peter,

I am afraid the same fact holds true for hyperlink color as well. You can even try using PowerPoint on your end and try changing the hyperlink text color. It will not change the color. However, when you remove hyperlink from text, the set color for text will automatically get applied.

Many Thanks,