Hi Bhuvaneswari,
Thanks for your example. I need one more thing to do what I want. Ultimately, I would like the rotated text to be at 270 degrees for each cell so that each cell contains text that reads vertically.
Currently, I can change the point of rotation, but I have to provide an absolute point. This point needs to be programmatically calculated for each cell, because the cells are not all at the same x-value. Does this make sense?
How can I accomplish this behavior?
Best regards,
BenT
>Hi BenT,
Thanks for your detailed explanation.
I tried testing this issue with your specification, I was able to reproduce this issue. However you can work around this issue by changing the point of rotation by using the below code snippets:
canvas=table.Rows[0].Cells[0].AddParagraph().AppendCanvas(new SizeF( 100,100));
shape=canvas.AddText("Header1");
//This shape.Location property is used to change the point of rotation.
shape.Location = new PointF( 40, 20 );
shape.Transform.Rotate(10);
with this I have attached the sample for your reference:
Please let me know if you have any other questions.
Thanks for your interest in Syncfusion products.
Best Regards,
Bhuvaneswari
Sample-Rotation.zip