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

Free Support Forum - aspose.com

How to wrap the text around the table using .NET

Hi,Support:

What is the method to move and place a table to a new position?
For example: the old position of a table is (0,0), now I want to move and place it to a new position like (25,600), how to do it ?

I try TextBox1.left=10, but no change result.

@ducaisoft

In your case, we suggest you please set the Table.TextWrapping as Around and set vertical and horizontal absolute distance. Following code example shows how to set these properties. Hope this helps you.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Table table = builder.StartTable();
builder.InsertCell();
builder.Write("Table 2, cell 1");
builder.EndTable();
table.PreferredWidth = PreferredWidth.FromPoints(300);

table.AbsoluteVerticalDistance = 50;
table.AbsoluteHorizontalDistance = 100;

doc.Save(MyDir + "Table.ChangeFloatingTableProperties.docx");

Thanks for your help.
But it report table.AbsoluteVerticalDistance is readonly. what’s wrong?
And else, how about for textbox? how to move a textbox to a new place?
I try textbox1.left=10, no change generated whether it is a bug?

@ducaisoft

Please use the latest version of Aspose.Words for .NET 20.9.

Please set the Shape.WrapType property as Square and set shape’s left and top position using Shape.Left and Shape.Top properties.