Added Profile debug for Debug Output (details printed at each paragraph)

This commit is contained in:
Rich 2015-01-20 19:22:37 +00:00
parent e66cc71db9
commit d991c5c9e3

View File

@ -985,8 +985,11 @@ namespace Volian.Print.Library
get
{
if (!Rtf2Pdf.PdfDebug) return "No Path";
return string.Format("DebugID = {0}, ID={1} Type={2} TypeName='{3}' StepLevel={4} ShortPath={5} Width={6} Left={7}",
int profileDepth = ProfileTimer.Push(">>>> vlnParagraph.DebugInfo");
string retval = string.Format("DebugID = {0}, ID={1} Type={2} TypeName='{3}' StepLevel={4} ShortPath={5} Width={6} Left={7}",
DebugId, MyItemInfo.ItemID, MyItemInfo.FormatStepType, MyItemInfo.FormatStepData == null ? "NoStepData" : MyItemInfo.FormatStepData.Type, MyItemInfo.StepLevel, MyItemInfo.ShortPath, Width, XOffset);
ProfileTimer.Pop(profileDepth);
return retval;
}
}
private void ResetDocStyleAndValues(ref float yTopMargin, ref float yBottomMargin)