Page 1 of 1

HAlign

Posted: 25 Feb 2011, 12:33
by Paolo Turrini
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);
...

Re: HAlign

Posted: 02 Mar 2011, 13:55
by support
Hello.
Please set CADText.Point1 property to alignment take effect. Text aligned relatively this value.

Alexander.