Is there any way to change the Font appearance of a Word form Field? We are using a Word Field to link to other sections of a Word document using bookmark names.
For example:
string linkLabel = "REF " + bookmarkName + " \\h";
Field link = this.wordDocBuilder.InsertField(linkLabel );
The bookmarks references are often table, image or section titles. I would like to make these links stand out by coloring the text blue and underlining them like a hyperlink.
I have tried setting that before I insert the field with:
this.wordDocBuilder.Font.Color = Color.Blue;
this.wordDocBuilder.Font.Underline = Underline.Single;
but it does not appear to have any affect. I assume that is because there is no actual font being used when I use InsertField command as opposed to inserting text with DocumentBuilder.Write
In Word, I can select the text displayed by the Word Field and modify the font but I have not found a way to do that with the Aspose API. Would I need to wrap a run around the Word Field? If so, how can I create a run containing just the Word Field?
I have tried using FieldFormat object on the field, but that does not contain Font information, just formats for Date, time, numbers, etc…