Update tooltip and title for bookmarks bar
Hello,
Can you please tell me how to update the tooltip of the bookmarks bar icon? Additionally, I'd like to change the title of the bookmarks bar.
Thanks.
Hi Natalie,
Based on the details provided, we understand that your requirement is to update
the tooltip of bookmark hyperlink and change its title.
Regarding “Update tootip of bookmark Hyperlink”:
Currently, we do not have support for updating tooltip of bookmark hyperlink. We
have already logged a feature request “Provide API to get and set screentip
for hyperlink Word document ” in our database. Currently, we
don’t have any immediate plans to implement this feature.
The status of the feature report can be tracked through the below link:
Provide
API to get and set screentip for hyperlink Word document in ASP.NET Core |
Feedback Portal
Regarding “Change title of bookmark hyperlink”:
You can change bookmark name in the hyperlink. Kindly refer to the code snippet
below:
|
WordDocument document = new WordDocument(@"../../../Input.docx"); //Find all fields in the document List<Entity> fields = document.FindAllItemsByProperty(EntityType.Field, "FieldType", "FieldHyperlink"); foreach (Entity entity in fields) { WField field = (WField)entity; Hyperlink hyperlink = new Hyperlink(field); hyperlink.BookmarkName = "Bookmark1_modified"; } document.Save(@"../../../Output.docx"); |
If your requirement is different, kindly share the complete details about your
requirement along with the input document used on your side. This will help us
provide a solution at the earliest.
For more detailed information about bookmark hyperlink, Kindly refer the below
UG:
Working
with Hyperlinks in .NET Word library | Syncfusion
Regards,
Sindhu Ramesh.
Actually, I was talking about the bookmarks icon and the title of the Bookmarks bar in the PdfViewer. I'm hoping for a solution I can add to the code-behind of the WPF window. I should have made that more clear in my initial message. Thanks.
Hi Natalie,
We can achieve your requirement of changing the default text of the Bookmark's title and tooltip by applying the localization to the WPF PdfViewer. To apply the localization, place the English resource file of PdfViewer in a folder named Resources. This Resources folder should be created parallel to your csproj file. Now, if we change the value of the required fields with your custom content. Please, refer the below screenshot for the name of the bookmark fields.
Additionally, we have created the sample for the same with the content in the above snapshot and attached below for your reference.
Please refer the below UG documentation for more details on localization,
Localization in WPF Pdf Viewer control | Syncfusion<sup>®</sup>;
Resource File: https://github.com/syncfusion/wpf-controls-localization-resx-files/tree/master/Syncfusion.PdfViewer.WPF
Regards,
Raja Vignesh.
Attachment: Localization_EN_5600f1f6.zip
- 3 Replies
- 3 Participants
-
NW Natalie Westphal
- Feb 11, 2025 01:48 AM UTC
- Feb 13, 2025 11:41 AM UTC