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

Free Support Forum - aspose.com

Cannot Clone/CompleteClone Row's VerticalAlignment


I am using Aspose.pdf for ASP.NET C#.
Is there a way to clone a row’s VerticalAlignment?

I tried the following and I’m able to clone all of the row’s Public Instance Properties but I cannot clone the VerticalAlignment. I tried both Clone and CompleteClone and in both cases the cells in row r2 are top aligned instead of bottom aligned.

Row r1 = new Row(tab);
r1.BackgroundColor = new Aspose.Pdf.Color("#CCCCCC");
r1.Border = new BorderInfo((int)BorderSide.All);
r1.DefaultCellBorder = new BorderInfo((int)BorderSide.Left);
r1.VerticalAlignment = VerticalAlignmentType.Bottom;
TextInfo ti = new TextInfo();
ti.FontSize = 18;
r1.DefaultCellTextInfo = ti;
Cell c = r1.Cells.Add(“test”);

Row r2 = r1.CompleteClone() as Row;
Cell c1 = r2.Cells.Add(“Cell One”);
Cell c2 = r2.Cells.Add(“Cell Two blah blah blah blah blah blah”);

Am I doing something incorrect?

Hello Jane,

Thanks for using our products.

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNET-17218. We will investigate this issue in details and will keep you updated on the status of a correction. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

We apologize for your inconvenience.

The issues you have found earlier (filed as 17218 ) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.