Add back in removed side effect code for printing grids with merged cells / checking boundaries

This commit is contained in:
2026-09-15 13:30:48 -04:00
parent 17e9a88a16
commit a680e8800d
+14 -2
View File
@@ -288,8 +288,20 @@ namespace Volian.Print.Library
MyFlexGrid = myFlexGrid; MyFlexGrid = myFlexGrid;
MyContentByte = myContentByte; MyContentByte = myContentByte;
SetupCells(); SetupCells();
//Note - this is done in case goes outside boundries to set bounds of cell
//loops through cells - side effect code checks for merged cells
foreach (vlnCell cell in this)
{
myTable.MyShading = VlnGridCellShading.Get(myFlexGrid.MyShading.ConvertToString()); // C2021-004 Table Cell Shading myTable.MyShading = VlnGridCellShading.Get(myFlexGrid.MyShading.ConvertToString()); // C2021-004 Table Cell Shading
myTable.MyBorders = VlnBorders.Get(myFlexGrid.MyBorders.ConvertToString()); myTable.MyBorders = VlnBorders.Get(myFlexGrid.MyBorders.ConvertToString());
_ = cell.AboveLeftSide;
_ = cell.AboveRightSide;
_ = cell.BelowLeftSide;
_ = cell.BelowRightSide;
_ = cell.RightOfBottomSide;
_ = cell.RightOfTopSide;
_ = cell.TextAlign;
}
} }
#endregion #endregion
public float MyLeading { get; set; } = 13.5F; public float MyLeading { get; set; } = 13.5F;
@@ -454,7 +466,7 @@ namespace Volian.Print.Library
// If a hard hyphen is found, the remove it and add a dash (keyboard minus sign) to the beginning // If a hard hyphen is found, the remove it and add a dash (keyboard minus sign) to the beginning
// of the text that follows it. // of the text that follows it.
int hype=-1; int hype;
while ((hype = GetHyphen(myPara)) > -1) while ((hype = GetHyphen(myPara)) > -1)
{ {
Font fnt = null; Font fnt = null;
@@ -550,7 +562,7 @@ namespace Volian.Print.Library
// If a backslash symbold is found, the remove it and add a backslash (keyboard char) to the beginning // If a backslash symbold is found, the remove it and add a backslash (keyboard char) to the beginning
// of the text that follows it. // of the text that follows it.
int bckSlsh = -1; int bckSlsh;
while ((bckSlsh = GetBackslash(myPara)) > -1) while ((bckSlsh = GetBackslash(myPara)) > -1)
{ {
Font fnt = null; Font fnt = null;