i add a textbox using the following code, it works, but the textbox has no visual box when activated on which i can rotate or set the layout options.
var document = new Document();
document.FirstSection.Body.AppendChild(new Paragraph(document));
var shape = new Shape(document, ShapeType.TextBox);
shape.Width = 100;
shape.Height = 50;
document.FirstSection.Body.FirstParagraph.AppendChild(shape);
shape.AppendChild(new Paragraph(document));
shape.FirstParagraph.Runs.Add(new Run(document, “Test”));
document.Save(“D:\test.docx”);
the attachment is a document with textbox created by MS word.
textbox.zip (15.9 KB)
how can i output a document with same effect as textbox.docx with aspose.words