A
Andrey Dzizenko
Hi all!
AFAIK MS Word has 2 type of styles: like "Style1" and like "Style1 + Font:
10pt".
E.g. Style1 is "Arial 12pt bold". I want to take properties of "Style1
+ Font: 10pt".
1. Style1 is based on another style, I've got how to work with it. If
Range.get_Style().Description contains "+" - I should use Range.Font to
get a font (which is "Arial 10pt bold" while Range.get_Style().Font is
always "Arial 12pt bold"). If Range.get_Style().Description doesn't
contain "+" - the style is default and I can use Range.get_Style().Font.
2. If Style1 is not based on any style ("no style"), I'm in doubt.
Range.get_Style().Description returns "Font: (Style1) Arial 12pt bold"
(without "+", and with 12pt instead of 10pt).
So my question:
Is there a legal way to define if one font is based on another font? Is
there a correct way to collect information about Word document styles?
Best regards,
A. Dzizenko.
AFAIK MS Word has 2 type of styles: like "Style1" and like "Style1 + Font:
10pt".
E.g. Style1 is "Arial 12pt bold". I want to take properties of "Style1
+ Font: 10pt".
1. Style1 is based on another style, I've got how to work with it. If
Range.get_Style().Description contains "+" - I should use Range.Font to
get a font (which is "Arial 10pt bold" while Range.get_Style().Font is
always "Arial 12pt bold"). If Range.get_Style().Description doesn't
contain "+" - the style is default and I can use Range.get_Style().Font.
2. If Style1 is not based on any style ("no style"), I'm in doubt.
Range.get_Style().Description returns "Font: (Style1) Arial 12pt bold"
(without "+", and with 12pt instead of 10pt).
So my question:
Is there a legal way to define if one font is based on another font? Is
there a correct way to collect information about Word document styles?
Best regards,
A. Dzizenko.