S
Sam
Say you have
Bold = 1 (100)
Italic = 2 (010)
Underline = 4 (001)
So the possible style values are:
Bold = 1
Italic = 2
Bold & Italic = 3 (110)
Underline = 4
Bold & Underline = 5 (101)
Italic & Underline = 6 (011)
Bold, Italic, & Underline = 7 (111)
In code how do I determine by the style number if the text should be italic.
I thought there was someway to do a bitwise AND or OR.
Is Italic in 5? FALSE
Is Italic in 3? TRUE, and so forth.
I'm working in VB.Net.
Thanks...
Bold = 1 (100)
Italic = 2 (010)
Underline = 4 (001)
So the possible style values are:
Bold = 1
Italic = 2
Bold & Italic = 3 (110)
Underline = 4
Bold & Underline = 5 (101)
Italic & Underline = 6 (011)
Bold, Italic, & Underline = 7 (111)
In code how do I determine by the style number if the text should be italic.
I thought there was someway to do a bitwise AND or OR.
Is Italic in 5? FALSE
Is Italic in 3? TRUE, and so forth.
I'm working in VB.Net.
Thanks...