I have two points, Ipoint upperRight;
and Ipoint lowerLeft;
points.
from the previous points i can get the height and the width for the rectangle.
How can i draw a rectangle on the map?.
I think i should use IGraphicsContainer.AddElement
Method, but i don't know how, i searched through the internet but didn't find any useful example.
Best Answer
This is the code to draw a rectangle to page layout view.