.NET

Reply
Distinguished Contributor
pocketmerlin
Posts: 112
Registered: ‎08-24-2013
Message 1 of 4 (143 Views)

Difference between MText.Height, MText.TextHeight, and MText.ActualHeight?

143 Views, 3 Replies
01-24-2014 06:48 AM

What's the difference between MText.Height, MText.TextHeight, and MText.ActualHeight? The ObjectARX documentation certainly leaves much to be desired.

Mentor
SENL1362
Posts: 150
Registered: ‎07-20-2011
Message 2 of 4 (130 Views)

Re: Difference between MText.Height, MText.TextHeight, and MText.ActualHeight?

01-24-2014 08:51 AM in reply to: pocketmerlin

MText.Height is the height of the (selected) MTEXT region, i.e. the total height of all the textlines and their separation.
MText.TextHeight is the height of the individual line of text, or matematical:
MText.Height=moreOrLess= nLines*(MText.TextHeight+hSeperation)

And if that's not true then it's the MText.ActualHeight :smileyhappy:

You can easilly find out you're self what these properties means by drawing polylines at these metrics.

 

 

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 3 of 4 (119 Views)

Re: Difference between MText.Height, MText.TextHeight, and MText.ActualHeight?

01-24-2014 12:17 PM in reply to: pocketmerlin
I would like to use:
myMtext.Width=myMText.ActualWidth;
_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Mentor
SENL1362
Posts: 150
Registered: ‎07-20-2011
Message 4 of 4 (111 Views)

Re: Difference between MText.Height, MText.TextHeight, and MText.ActualHeight?

01-24-2014 01:02 PM in reply to: Hallex
yes, you are absolutely right. It's the best alternative for the bounding box to have the smallest box around text.
I'll use it to calculate the smallest possible table size

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community