The style says nothing if there is a mixture of styles in the selection/range you are testing. In a TOC, a paragraph will have a 'TOC x' paragraph style and often a hyperlink character style applied over it.
Perhaps you should explain why you want the result returned as an array?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|