cart: empty [ Login ]

Width of the text entity

1 
oleg
9/16/2006 3:07 AM
Hi, Is it possible to find width of the text entity (DXFText)? For example if two dxftext entities following each order, coordinates of the second one are offsetted from the first one.
Wout
9/16/2006 10:08 AM
Hi Oleg, No there isn't. There are a few alternatives that might help you out though (see the DxfText class):
  • You can align the first text to the right by setting HorizontalAlignment to TextHorizontalAlignment.Right and specify its AlignmentPoint2.
  • Alternatively you can specify both alignment points and set HorizontalAlignment to TextHorizontalAlignment.Fit such that the text fits between the two specified points.
Let me know whether this works out for you or not! Kind regards, Wout
oleg
9/19/2006 2:46 AM
Got it. Thanks
1