is there any way to add a rotated text to a table cell?
I tried to create a shape (TEXT_BOX) with text and 90° rotation, but only the box was rotated, not the contained text.
Thanks for your request. I am afraid this is an expected behavior. In Ms Word you cannot rotate text inside textbox. However, you can specify orientation of text. For instance see the following code:
Document doc = new Document();
Shape textbox = new Shape(doc, ShapeType.TextBox);
textbox.Width = 100;
textbox.Height = 100;
textbox.TextBox.LayoutFlow = LayoutFlow.BottomToTop;
Paragraph par = new Paragraph(doc);
par.AppendChild(new Run(doc, "This is test content"));
Hope this helps.
Thanks, works like a charm