Added format variables for Wolf Creek Training format
Save the Y position for the placement of a line after the section title. Also adjust the width of the section title with respect to the section number. All for the Wolf Creek Training format Print a horizontal line after the section header (number and title) for the Wolf Creek Training format
This commit is contained in:
@@ -147,6 +147,12 @@ namespace Volian.Print.Library
|
||||
get { return _AlarmYoffEnd; }
|
||||
set { _AlarmYoffEnd = value; }
|
||||
}
|
||||
private float _SectionSepLineYoffStart = 0;
|
||||
public float SectionSepLineYoffStart
|
||||
{
|
||||
get { return _SectionSepLineYoffStart; }
|
||||
set { _SectionSepLineYoffStart = value; }
|
||||
}
|
||||
private PdfWriter _MyPdfWriter;
|
||||
public PdfWriter MyPdfWriter
|
||||
{
|
||||
@@ -281,7 +287,11 @@ namespace Volian.Print.Library
|
||||
DrawHorizontal(writer.DirectContent, (float)MySection.MyDocStyle.Layout.LeftMargin, (float)MySection.MyDocStyle.Layout.PageWidth, (float)MySection.MyDocStyle.CenterLineYTop);
|
||||
//if (MySection.ColumnMode > 0 && onBlankPage == false)
|
||||
if (MySection.ColumnMode > 0 || MySection.ActiveFormat.PlantFormat.FormatData.PrintData.WCNTraining)
|
||||
{
|
||||
DrawCenterLine(writer.DirectContent, MySection.MyDocStyle.Layout.LeftMargin + MySection.MyDocStyle.CenterLineX ?? 0, MySection.MyDocStyle.CenterLineYTop ?? 0, MySection.MyDocStyle.CenterLineYBottom ?? 0);
|
||||
if (MySection.ActiveFormat.PlantFormat.FormatData.PrintData.WCNTraining)
|
||||
DrawHorizontal(writer.DirectContent, (float)(MySection.ActiveFormat.PlantFormat.FormatData.SectData.SectionHeaderSeparatorLine.XStartPos ?? 0), (float)(MySection.ActiveFormat.PlantFormat.FormatData.SectData.SectionHeaderSeparatorLine.Length ?? 0), SectionSepLineYoffStart);
|
||||
}
|
||||
}
|
||||
|
||||
if (MySection.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm)
|
||||
|
Reference in New Issue
Block a user