Thanks, but won't this "hardcode" the theme colors? Means, if the next
version of Visio will change the list of themes/theme colors (for
example), OR if a end-user has his own theme defined in a document,
then this method will cease to function... Won't it?
Meantime I came to some sort of "weird" implementation eventually...
Now I ended up creating a "fake" invisible page in a document, putting
there that "6 boxes and a line" picture (one that can be found in
Visio's "Themes" pane) where each box is painted with particular theme
color, then repeatedly applying all available themes to that invisible
page one-by-one, while taking a series of "screen-shots" of that
invisible page, using Page.Picture property - it generates a nice
scalable EMF images that can be rendered in a dialog/form as "theme
thumbnails", and finally deleting that fake page... Fuf..
But hopefully someone can suggest a more "straightforward" approach?
Kind regards, Nikolay.