Bookmark attribute for images?

  • For text, I use the BookmarkTextAttribute to show a double underline in green. However, If I just bookmark an image (linked), or an image is part of the bookmarked text, it does not show this double underline under the image (as expected I guess). Can you think of anything I can do to indicate that an image is bookmarked other than showing the bookmark indicator in the gutter? Maybe even an overly that is only visible in the editor but not in print preview or the PDF?

  • Works perfectly, thanks! I still have to add some code to optionally paint the link overlay, but this is what I did in case it helps anyone:

  • For completeness, I now paint the "link" image only if the image is within bookmarked text. Code follows:

    Einmal editiert, zuletzt von ehimmer (4. Januar 2021 um 23:03)