If cloning a cell DefaultCellTextState is not cloned

Hello Aspose,

when calling

var dataCell31 = (Cell)dataCell11.Clone();
the property Cell.DefaultCellTextState is not cloned. Maybe others as well.

Regards
Gerd

@Gerd

Would you please share complete sample code snippet and some more details to reproduce the issue in our environment? We will test the scenario and address it accordingly.

I thought this issue can be checked on source code basis.
But nevertheless:

void foo()
{
var cell1 = new Cell()
{
Alignment = HorizontalAlignment.Left,
VerticalAlignment = VerticalAlignment.Center,
IsNoBorder = false,
IsOverrideByFragment = false,
IsWordWrapped = true,
ColSpan = 1,
RowSpan = 1,
DefaultCellTextState = new TextState(“Courier”, true, true) { HorizontalAlignment = HorizontalAlignment.Right, FontSize = 7, LineSpacing = 10 },
BackgroundColor = Color.FromArgb(230, 230, 230),
Paragraphs = { new TextFragment(“”) },
Border = new BorderInfo(BorderSide.Bottom | BorderSide.Right, 1F, Color.FromArgb(153, 153, 153))
};
var cell2 = (Cell)cell1.Clone();
Console.WriteLine(“Aspose-TextInfo: {0}, Size: {1}, Style: {2}, LineSpace: {3}, Alignment: {4}”,
cell1.DefaultCellTextState.Font.FontName,
cell1.DefaultCellTextState.FontSize,
cell1.DefaultCellTextState.FontStyle,
cell1.DefaultCellTextState.LineSpacing,
cell1.DefaultCellTextState.HorizontalAlignment
);
Console.WriteLine(“Aspose-TextInfo: {0}, Size: {1}, Style: {2}, LineSpace: {3}, Alignment: {4}”,
cell2.DefaultCellTextState.Font.FontName,
cell2.DefaultCellTextState.FontSize,
cell2.DefaultCellTextState.FontStyle,
cell2.DefaultCellTextState.LineSpacing,
cell2.DefaultCellTextState.HorizontalAlignment
);
}

@Gerd

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-58868

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.