Select to view content in your preferred language

Ask about setting coordinate of Text in MapControl

573
0
09-18-2012 02:18 AM
TaiBui
by
Frequent Contributor
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
0 Kudos
0 Replies