Wed Jan 19, 2011 7:29 am
Thank you for your inquiry!
Hyperlink is a field, and there are some nodes in it. According to your requirement, you may set the format of the hyperlink by operating the textRange node. The textRange node is the third node of the hyperlink, so you should use NextSiling method to obtain the textrange node and set it. Code:
Field hyperlink = paragraph.AppendHyperlink("www.e-iceblue.com", "www.e-iceblue.com", HyperlinkType.WebLink);
TextRange text = hyperlink.NextSibling.NextSibling as TextRange;
text.CharacterFormat.Bold = true;
text.CharacterFormat.UnderlineStyle = UnderlineStyle.None;
e-iceblue support