Select to view content in your preferred language

Position TextElement with an AnchorPoint

1860
0
02-24-2011 12:23 PM
TomSchuller
Frequent Contributor
Hy,
I want to add an TextElement on my PageLayout.
The position should be done with an AnchorPoint like the attached example from ArcMAP:

Here is my Java code:
        TextElement textElement = new TextElement();
        textElement.setText(txt);
        Point point = new Point();
        point.putCoords(19,20);
        textElement.setGeometry(point);
        textElement.setAnchorPoint(esriAnchorPointEnum.esriTopRightCorner);


All my settings seemed to be ignored.

Thanks in advance,
Schuller Tom
0 Kudos
0 Replies