taibc

Ask about setting coordinate of Text in MapControl

Discussion created by taibc on Sep 18, 2012
Hi friends,

I am writing a function to read Text Elements from a .DGN file and add them into a MapControl.

I used below codes to identify coordinates X, Y of Text in the .DGN file:

point.X = oScanEnumerator.Current.AsTextElement.get_Origin().X;
point.Y = oScanEnumerator.Current.AsTextElement.get_Origin().Y;

(X = 660786,366141732, Y = 1629491,20078983)

But, when I add Text into a MapControl, I can't show Text with these coordinates.

Do you know how to fix it ?

Thanks and regards,

Tai

Outcomes