Place IGroupElement at Position XY in Layout

Discussion created by DrColgate on Oct 13, 2011
Latest reply on Oct 30, 2011 by DrColgate
Does anyone know how to move a Group Element or even just a regular old ELement to a specific XY on the Layout View?

I've tried setting it like I do for the Text Element below but just change ITextElement for IGroupElement and TextElementCLass for GroupElementClass :

        ESRI.ArcGIS.Carto.IElement element = new ESRI.ArcGIS.Carto.TextElementClass();
        ESRI.ArcGIS.Carto.ITextElement textElement = (ESRI.ArcGIS.Carto.ITextElement)element;

        ESRI.ArcGIS.Geometry.IPoint point = new ESRI.ArcGIS.Geometry.PointClass();
        point.X = 5;       
        point.Y = 10;

        element_TableField.Geometry = point;

But it fails with values outside expected range.

Is there an easy way to set the Anchor Point to a specific XY coordinate on the Page Layout?  This would be really good if it can be moved as IElement so I can use it for everything.  It is painfully easy in Python but not being able to create Elements kind of ruined the good time I was having there...