How to change hyperlink styles using novacode.docx

Mar 21 at 11:54 AM
using Docx DLL I've created hyperlinks where, I tried to customize styles.

public Hyperlink AddHyperLink(string name, string uri)
  //FontFamily family = new FontFamily("Comic Sans MS");
  //string Name= string.Format(name,Color.DarkOrange, FontStyle.Regular,family);
    Hyperlink hp = document.AddHyperlink(name, new Uri(uri)); ;

    return hp ;
In Docx Addhyperlink method accteps only two parameters 1) string 2) URI

In novacode.Docx paragrapth only has style method, string has no style features.

how can I have different styles for hyperlink ?

Thanks in advance.

I tried string.Format But when string passed as parameter, it automatically changes to default style.
Mar 29 at 7:29 PM
Try to change style in paragraph:

paragraph.AppendHyperlink(h).FontSize(10).Font(new System.Drawing.FontFamily("Comic Sans MS")).Color(System.Drawing.Color.Blue).UnderlineStyle(UnderlineStyle.singleLine)