.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

3 REPLIES 3
Reply
Message 1 of 4
ltmullen
1047 Views, 3 Replies

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

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

3 REPLIES 3
Message 2 of 4
SENL1362
in reply to: ltmullen

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 🙂

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

 

 

Message 3 of 4
Hallex
in reply to: ltmullen

I would like to use:
myMtext.Width=myMText.ActualWidth;
_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 4 of 4
SENL1362
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost