Duplicated
Last Updated: 28 May 2020 12:15 by ADMIN
Dimitar
Created on: 22 May 2020 06:19
Category: WordsProcessing
Type: Bug Report
1
WordsProcessing: Borders are not correctly imported from html

Borders are not correctly imported from HTML.

Workaround: Set borders in code:

var tables = document.EnumerateChildrenOfType<Table>();

var border = new Border(1, BorderStyle.Single, new ThemableColor(Colors.Black));

foreach (var table in tables)
{
    table.Borders = new TableBorders(border);

    foreach (var row in table.Rows)
    {
        foreach (var cell in row.Cells)
        {
            cell.Borders = new TableCellBorders(border);
        }
    }
}

Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
0 comments