You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have found a problem that when I add a paragraph using the .InsertParagraphAfterSelf(paragraph) method, FollowingTables are not wrapped into the new paragraph.
Example:
If I start copying the first paragraph 1. One, it will be copied without the table. Which is why I have to write something like this:
public static Paragraph InsertParagraphAfterSelfWithTables(this Paragraph self, Paragraph paragraph)
{
var newParagraph = self.InsertParagraphAfterSelf(paragraph);
if ((paragraph.FollowingTables?.Count ?? 0) > 0 &&
(newParagraph.FollowingTables?.Count ?? 0) == 0)
{
foreach (var table in paragraph.FollowingTables!)
{
newParagraph.InsertTableAfterSelf(table);
}
}
return newParagraph;
}
The text was updated successfully, but these errors were encountered:
We have adjusted InsertParagraphAfterSelf( Paragraph paragraph ) and InsertParagraphBeforeSelf( Paragraph paragraph ) methods. Starting from version 3.2, when inserting from an existing paragraph, the paragraph will be inserted along with its following tables.
Hi, I have found a problem that when I add a paragraph using the .InsertParagraphAfterSelf(paragraph) method, FollowingTables are not wrapped into the new paragraph.
Example:
If I start copying the first paragraph 1. One, it will be copied without the table. Which is why I have to write something like this:
The text was updated successfully, but these errors were encountered: