Changed VlnBorders so that XML is not saved twice
Changed MyBorderDetailString so that XML is saved once Adjust the vertical location of the Grid to match 16 bit.
This commit is contained in:
parent
76dd59be14
commit
c1d863e1ac
@ -163,10 +163,14 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
#endregion
|
||||
#region Serialize
|
||||
public override string ToString()
|
||||
public string ConvertToString()
|
||||
{
|
||||
return GenericSerializer<VlnBorders>.StringSerialize(this);
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return "Volian Custom Borders";
|
||||
}
|
||||
public static VlnBorders Get(string xml)
|
||||
{
|
||||
return GenericSerializer<VlnBorders>.StringDeserialize(xml);
|
||||
|
@ -68,7 +68,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
get
|
||||
{
|
||||
return MyBorders.ToString();
|
||||
return MyBorders.ConvertToString();
|
||||
}
|
||||
set
|
||||
{
|
||||
|
@ -124,6 +124,12 @@ namespace Volian.Print.Library
|
||||
if (textLayer != null) cb.EndLayer();
|
||||
return bottom;
|
||||
}
|
||||
private static float _GridTopAdjust = -10;
|
||||
public static float GridTopAdjust
|
||||
{
|
||||
get { return _GridTopAdjust; }
|
||||
set { _GridTopAdjust = value; }
|
||||
}
|
||||
public static float GridAt(PdfContentByte cb, vlnTable myGrid, float x, float y, float width, float height, string debugText, float yBottomMargin, bool hasBorder)
|
||||
{
|
||||
VlnSvgPageHelper _MyPageHelper = cb.PdfWriter.PageEvent as VlnSvgPageHelper;
|
||||
@ -135,7 +141,7 @@ namespace Volian.Print.Library
|
||||
ColumnText myColumnText = new ColumnText(cb);
|
||||
myColumnText.SetSimpleColumn(left, top, left + width, yBottomMargin);
|
||||
if (textLayer != null) cb.BeginLayer(textLayer);
|
||||
myGrid.ToPdf(myColumnText, left, top);
|
||||
myGrid.ToPdf(myColumnText, left, top + GridTopAdjust);
|
||||
if (textLayer != null) cb.EndLayer();
|
||||
return bottom;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user