Visio Xml Style Node

W

wdhough

Hi,

The Style node found under the text node for a shape in Visio xml is
supposed to indicate whether the charset is bold, underlined,italic and small
caps.

The values for for each of these from the Visio Xml Reference claim to be
Bold: 1
Italic: 2
Underline 4
Small Caps: 8

I set some text to be underlined, bold and italic.
and the style node value was 55?
I dont understand how the value 55 is reached from what should be 1+2+4 = 7

Any help here would be great!

Thanks
 
J

JuneTheSecond

One more visSmallCaps = 8 , then 1+2+4+8=15, and 55 mod 16 =7.
The value 7, 23,39,55 give same result. It looks something cyclic.
 
W

wdhough

Ok well the maths certainly hold, The documentation describes the number as
The value represents a binary number in which each bit indicates a character
style.
so that would make sense with your math as well right?

Thanks for help on this
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top