none
How to determine if a Style uses a frame RRS feed

Answers

  • Hi Dan

    In a quick test, if the Style.Description contains the term "Position:" then it likely contains a frame. With the possible exception of a text box (which can be included when creating a style by example, but not over the menus) that's the only thing that would use Position: I think.

    The other way would be to apply the style, check Range.Frames.count then "Undo" the action.


    Cindy Meister, VSTO/Word MVP
    • Marked as answer by Dan9298 Tuesday, July 19, 2011 12:26 PM
    Tuesday, July 19, 2011 11:45 AM
    Moderator

All replies

  • Hi Dan

    In a quick test, if the Style.Description contains the term "Position:" then it likely contains a frame. With the possible exception of a text box (which can be included when creating a style by example, but not over the menus) that's the only thing that would use Position: I think.

    The other way would be to apply the style, check Range.Frames.count then "Undo" the action.


    Cindy Meister, VSTO/Word MVP
    • Marked as answer by Dan9298 Tuesday, July 19, 2011 12:26 PM
    Tuesday, July 19, 2011 11:45 AM
    Moderator
  • Hello Cindy,

    Thanks for the response.  I believe your idea of checking for 'Position:' in the Style.Description will work for my needs.  

    Your answers to other users on this forum have helped me countless times.

     

     

    Tuesday, July 19, 2011 12:28 PM
  • Glad I could help, Dan :-)
    Cindy Meister, VSTO/Word MVP
    Tuesday, July 19, 2011 12:52 PM
    Moderator