HAlign

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
User avatar
Paolo Turrini
Posts: 4
Joined: 25 Feb 2011, 12:06

HAlign

Post by Paolo Turrini » 25 Feb 2011, 12:33

I'd like to insert a text aligned to the right, I use HAlign=2 but does not work.

Can anyone tell me what is wrong?

I enclose a clip of my code:
...
CADText cText = new CADText();
...

cText.HAlign = 2;
cText.Point = new DPoint(Convert.ToDouble(this.tbX2.Text), Convert.ToDouble(this.tbY2.Text), Convert.ToDouble(this.tbZ2.Text));
cText.Height = Convert.ToInt16(this.cbHeights.Text);
cText.Rotation = Convert.ToInt32(this.tbRotation.Text);
cText.Text = this.richTextBox1.Text;
cadImage.Converter.GetSection(ConvSection.Entities).AddEntity(cText);
cadImage.Converter.OnCreate(cText);
cadImage.Converter.Loads(cText);
...
Paolo Turrini

Consulenze Informatiche
Via Pavone 71
44121 Ferrara - Italy

Tel. +39 051 051 64 90
Fax. +39 0532 19 11 789
Cel.+39 339 8715400

E-mail: info@informaticaturrini.com
Sito: http://www.informaticaturrini.com

support
Posts: 3256
Joined: 30 Mar 2005, 11:36
Contact:

Re: HAlign

Post by support » 02 Mar 2011, 13:55

Hello.
Please set CADText.Point1 property to alignment take effect. Text aligned relatively this value.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply