I am trying to programmatically determine the bounds (in layout/page coordinates) of a layout element. I see that there are methods like GetX(), GetWidth(), GetY(), GetHeight() on a GraphicElement, but the graphic element may not actually be positioned within (x,y) through (x+width, y+height). For instance, if you create a text graphic element using a CIMTextSymbol whose rotation is set to 90°, the reported width of the resulting element will be greater than the reported height, even though the element is rotated such that it is much taller than it is wide. These methods seem to be returning the size of the element before rotation is applied. I am hoping to get the actual bounds of the element within the page, much like you could get the envelope of a polygon within a map. I could probably use GetRotation() and GetAnchor() along with the X, Y, width, and height to calculate the actual bounds of the element, but I don't trust that rotation is the only other variable that is affecting the actual position and size of the element in the layout. Is there a convenient way to get the 'envelope' for any given GraphicElement in a layout?
Thanks,
Brennan