lab-4-hard one minor fix

This commit is contained in:
Zakharov_Rostislav 2024-04-05 21:45:38 +04:00
parent 362cc46332
commit 52f34dc694

View File

@ -134,31 +134,31 @@ namespace BlacksmithWorkshopBusinessLogic.OfficePackage.Implements
Val = new EnumValue<BorderValues>(BorderValues.Single),
Size = 12
},
new BottomBorder
{
Val = new EnumValue<BorderValues>(BorderValues.Single),
Size = 12
},
new LeftBorder
{
Val = new EnumValue<BorderValues>(BorderValues.Single),
Size = 12
},
new RightBorder
{
Val = new EnumValue<BorderValues>(BorderValues.Single),
Size = 12
},
new InsideHorizontalBorder
{
Val = new EnumValue<BorderValues>(BorderValues.Single),
Size = 12
},
new InsideVerticalBorder
{
Val = new EnumValue<BorderValues>(BorderValues.Single),
Size = 12
});
new BottomBorder
{
Val = new EnumValue<BorderValues>(BorderValues.Single),
Size = 12
},
new LeftBorder
{
Val = new EnumValue<BorderValues>(BorderValues.Single),
Size = 12
},
new RightBorder
{
Val = new EnumValue<BorderValues>(BorderValues.Single),
Size = 12
},
new InsideHorizontalBorder
{
Val = new EnumValue<BorderValues>(BorderValues.Single),
Size = 12
},
new InsideVerticalBorder
{
Val = new EnumValue<BorderValues>(BorderValues.Single),
Size = 12
});
docTable.AppendChild(tableProps);
TableGrid tableGrid = new TableGrid();
for (int i = 0; i < table.Columns; i++)
@ -173,6 +173,7 @@ namespace BlacksmithWorkshopBusinessLogic.OfficePackage.Implements
}
int height = table.RowText.Count;
int width = table.Columns;
docTable.AppendChild(tableRow);
for (int i = 0; i < height; i++)
{
tableRow = new TableRow();
@ -183,7 +184,6 @@ namespace BlacksmithWorkshopBusinessLogic.OfficePackage.Implements
}
docTable.AppendChild(tableRow);
}
_docBody.AppendChild(docTable);
}
private TableCell CreateTableCell(string element)