1) Use visibleBounds instead of geometricBounds (for transformed objects).
2) set the rulerOrigin to spread.
3) Don't use .NET unless you enjoy a painful experience.
Thank you so much Harbs! - You helped me solve the problem!
I tried setting the ruler origin to spread, and that made it possible for me to compare the coordinates returned from VisibleBounds directly. (And thanks for the tip about VisibleBounds instead of GeometricBounds)
Again, thanks alot, really. I've spent some time now trying to figure this one out, so it's really a relief to get this one resolved.
Thanks for your help Harbs!
...I've certainly had my share of challenges using InDesign scripting from .NET, but once you know the quirks, it works pretty well and I certainly don't consider it a painful experience...
I'm glad to hear it! I have never attempted to use .NET myself, but from others I've gathered that it can be quite painful.
If it works for you, far be it from me to differ!
I know this question has already been answerd, and I think I posted a similiar question under "accessing page items in the document but outside the page bounds" found here -> http://forums.adobe.com/message/4105283#4105283
But I would like to know how you maintained access to these textframes that are off the edge of your page? The only way I can get to them is if they are atleast touching the page bounds and I can use myPage.pageItems.
I maintain access to the textframes by having a variable point to them. I get this variable when I create the textframe, like this:
var textframe = page.TextFrames.Add();
Then I use the variable 'textFrame' to do whatever I need to do (Transform it, insert text etc.). If I wanted to do something with the textframe later on, I would just hang on to the variable, or put it into a List.
I haven't had any need for myPage.PageItems, so I haven't used that.