Add line width, CLineWidth for lines internal to training format

Add line width, CLineWidth for horizontal & centerline  (WCNTRN)
Use docstyle’s CLineWidth for horizontal & centerlines, if defined )WCNTRN)
This commit is contained in:
Kathy Ruffing 2015-06-16 15:36:55 +00:00
parent 66b90b447f
commit 7dbde80f7c
3 changed files with 14 additions and 1 deletions

Binary file not shown.

View File

@ -237,6 +237,17 @@ namespace VEPROMS.CSLA.Library
return LazyLoad(ref _CenterLineYBottom, "@CenterLineYBottom");
}
}
private LazyLoad<float?> _CLineWidth;
[Category("CenterLine")]
[DisplayName("Line Width")]
[Description("Width of Lines Internal to Boxes")]
public float? CLineWidth
{
get
{
return LazyLoad(ref _CLineWidth, "@CLineWidth");
}
}
#endregion
#region OptionalSectionContent
[Category("Miscellaneous")]

View File

@ -454,6 +454,7 @@ namespace Volian.Print.Library
cb.SaveState();
if (PageListLayer != null) cb.BeginLayer(PageListLayer);
cb.SetColorStroke(new Color(PrintOverride.SvgColor));
if (MySection.MyDocStyle.CLineWidth != null && MySection.MyDocStyle.CLineWidth != 0) cb.SetLineWidth((float)MySection.MyDocStyle.CLineWidth);
//cb.SetColorStroke(lineColor);
cb.MoveTo(left, yoff);
cb.LineTo(right, yoff);
@ -483,7 +484,8 @@ namespace Volian.Print.Library
//iTextSharp.text.Color lineColor = new iTextSharp.text.Color(PrintOverride.OverrideTextColor(System.Drawing.Color.DarkOrange));
cb.SaveState();
if (PageListLayer != null) cb.BeginLayer(PageListLayer);
cb.SetLineWidth(.95f);
float lwidth = MySection.MyDocStyle.CLineWidth ?? .95f;
cb.SetLineWidth(lwidth);
cb.SetColorStroke(new Color(PrintOverride.SvgColor));
//cb.SetColorStroke(lineColor);
cb.MoveTo(xLoc, yTop);