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);
...
HAlign
Moderators: SDS, support, admin
- Paolo Turrini
- Posts: 4
- Joined: 25 Feb 2011, 12:06
HAlign
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
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
Re: HAlign
Hello.
Please set CADText.Point1 property to alignment take effect. Text aligned relatively this value.
Alexander.
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
Chat support on Skype: cadsofttools.support