I tried to set the Valign and Align of a label. Which works fine when the angle of the label is not set. See below:
Label introLabel = new Label("this is a label", 0, 0 , 500, 500, FontStandard, 10, TextAlign.Center, CmykColor.White);
introLabel.VAlign = VAlign.Center;
The label is nicely centered within the 500x500 box.
Thus when setting the angle the label moves
Label introLabel = new Label("this is a label", 0, 0 , 500, 500, FontStandard, 10, TextAlign.Center, CmykColor.White);
introLabel.VAlign = VAlign.Center;
introLabel.Angle = 20;
The label is not placed in the centre of 500x500 box.
How to place a rotated label in the centre of a page/box?
Thanks in advance.
Valign and Align of Label
Re: Valign and Align of Label
Support · Aug 18, 2008Hello,
By default, the label gets rotated off its top-left corner. In order to rotate the label off its center, you will have to do some calculations. We have a thread on our form that shows the calculations that are required to do this. Please click the following link: http://www.DynamicPDF.com/Forums/DisplayThread.csp?F=8&T=671#2443
.
Thanks,
ceTe Software Support Team