We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Retrieving hyperlink tooltip

Hi There

I’m trying to retrieve the tooltip values from hyperlinks in a Word document as they need to be translated.
I’m wondering is there a standard way of getting and setting these values in Aspose.Words?

Thanks

Eric

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Hyperlinks in MS Word are fields. Each field consist of FieldStart, FieldEnd, FieldSeparator nodes and field code, field value text. In case of Hyperlink, field code looks like the following:

{ HYPERLINK "http://www.aspose.com " \o "this is tooltip" }

Highlighted text is screentip. So to get screentip, you should first get field code and then parse the field code. Here you can find an example, which shows how you can modify hyperlinks:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/howto-replace-or-modify-hyperlinks.html

I think this article could be useful for you.

Best regards,