F2023-039 logic to support print a pagelist line in a specified color

This commit is contained in:
John Jenko 2023-03-30 15:15:10 +00:00
parent 57367efdea
commit 8d2dc00ad5

View File

@ -2775,8 +2775,9 @@ i = 0;
SvgText.CompressSub = mySection.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.CompressHPSub;
SvgText.CompressPropSubSup = mySection.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.CompressPropSubSup;
svgText.Text = text;
//if (pageItem.TextColor != null && pageItem.TextColor != "")
// svgText.FillColor = System.Drawing.Color.FromName(pageItem.TextColor);// System.Drawing.Color.Red;
// F2023-039 logic to specify a color when printing a paglist line
if (pageItem.TextColor != null && pageItem.TextColor != "")
svgText.FillColor = System.Drawing.Color.FromName(pageItem.TextColor);// System.Drawing.Color.Red;
VEPROMS.CSLA.Library.E_Justify justify = pageItem.Justify ?? VEPROMS.CSLA.Library.E_Justify.PSLeft;
float colAdj16bit = 0;
if ((justify & VEPROMS.CSLA.Library.E_Justify.PSLeft) == VEPROMS.CSLA.Library.E_Justify.PSLeft)