HAlign
Posted: 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);
...
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);
...