determine underline type from underline code

K

kbaxreno

in a style I would like to list the underline type from the underline code.
activedocument.Styles.Item(106).Font.Underline returns 7 which is a dashed
underline. The watch window shows this as wdunderlinedashed. A type 0 is
wdunderlinenone.
how can I convert these to display them as the watch window does? If I need
to set up a case routine to test for each one, where do I find the values?

Thanks
kenb
 
T

Tony Jollans

The only way to get these in code is to use the TypeLib library functions.
As a one-time exercise, either the Object Browser or the Help for the
enumeration (if there is one, this can be copied from) are the easiest
sources of information.
 

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