We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Text rotation

Is it possible to rotate a block of text in the same way as you can for the barcode?

Hi
Maringa,


Thanks for your inquiry. Please follow up this code to rotate text:

Document doc = new Document();<o:p></o:p>

<o:p> </o:p>

Shape textbox = new Shape(doc, ShapeType.TextBox);<o:p></o:p>

textbox.Width = 100;<o:p></o:p>

textbox.Height = 100;<o:p></o:p>

textbox.TextBox.LayoutFlow = LayoutFlow.BottomToTop;<o:p></o:p>

<o:p> </o:p>

Paragraph par = new Paragraph(doc);<o:p></o:p>

textbox.AppendChild(par);<o:p></o:p>

par.AppendChild(new Run(doc, “This is test content”));<o:p></o:p>

<o:p> </o:p>

doc.FirstSection.Body.FirstParagraph.AppendChild(textbox);<o:p></o:p>

<o:p> </o:p>

doc.Save(@“Test001\out.doc”);<o:p></o:p>

<o:p> </o:p>

Hope this helps.


In which assembly is Shape defined?

Hi Maringa,

Thanks for your inquiry.
Please follow up for more details:

Aspose.Words 10.8
http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/default.aspx

Shape Class:
http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/aspose.words.drawing.shape.html

This is working great, thanks very much!

Hi Maringa,

Thank you very much for your feedback. It is great to hear that your issue has been resolved. You are always welcome and please feel free to ask if you have any query in future.

We always welcome constructive response from our customers.