How do I get bookmark text color to support multicolored bookmarks?


I want to get color of the bookmark/link and assign the same color to
the back color property of the label control.
    I want to assign the label control backcolor to bookmark/link


You can obtain existing bookmark color using
pdftron.PDF.Bookmark.GetColor(r, g, b) method. The resulting values
will be in the range [0..1]. You may need to map these values to range
0..255 by multiplying the values by 255. For example,

double r, g, b;
bookmark.GetColor(ref r, ref g, ref b);
int red = (int) (r * 255);

To change the text color for the label control you would modify the
text color property on 'Windows Forms' control.