Results 1 to 2 of 2

Thread: How to tell whether Range is inside a Frame

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2020
    Posts
    5

    How to tell whether Range is inside a Frame

    Hi all,

    I'm stepping through my document paragraph by paragraph, performing certain actions depending on its contents, position, etc. I need to know whether the paragraph in question is with a frame (not a textbox, but a frame that is created using Insert Frame). So far, have come up short. Best I can cypher right now is to expand the Range by a couple lines in each direction, and then to see if the new range contains a frame using opara.Range.frames.Count.

    Does anyone else have suggestions on how to tell if a range is within a frame?

    Thx in advance

  2. #2

    Thread Starter
    New Member
    Join Date
    Feb 2020
    Posts
    5

    Re: How to tell whether Range is inside a Frame

    Please disregard, think I answered it myself! Upon further investigation, looks like oPara.Range.Frames.Count returns "1" if range is within a frame.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width