Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [CONNECT C++] Formatting using ECN::IECInstance

$
0
0
Jon,

When creating a TextField, you can pass in an optional IECInstanceCP containing formatting information.
Formatting is performed by IDgnECTypeAdapter (with much of the functionality in the base ECN::IECTypeAdapter class).
Given an ECProperty, use IDgnECTypeAdapter::GetForProperty/ArrayMember() to obtain the associated type adapter.
Then use the adapter's CreateDefaultFormatter() function to create an IECInstance containing default formatting options.
See MstnPropertyFormatter ECSchema for the various formatting classes.
Set up the property values of your formatter and pass them to TextField::Create*().

Regards,
Paul

Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>