Added suffix to GetParagraphHeight to calculate the height of the Continue Message.
Added ContinueHeight property to calculate tthe height of the Section continue message.
This commit is contained in:
@@ -1097,6 +1097,24 @@ namespace Volian.Print.Library
|
||||
return (prTab + thisTab.Trim()).TrimEnd(".".ToCharArray());
|
||||
}
|
||||
private static bool DoSubs = true; // flag whether to print substeps (don't if doing continued checklist header)
|
||||
protected float _ContinueHeight=0;
|
||||
public virtual float ContinueHeight
|
||||
{
|
||||
get
|
||||
{
|
||||
int profileDepth = ProfileTimer.Push(">>>> vlnPrintObject.ContinueHeight");
|
||||
if (_ContinueHeight == 0
|
||||
&& MyItemInfo.MyDocStyle.Continue.Top.Message.Contains("%s")
|
||||
&& MyItemInfo.MyDocStyle.Continue.Top.Message.ToUpper().EndsWith(" (Continued)".ToUpper()))
|
||||
{
|
||||
string suffix = MyItemInfo.MyDocStyle.Continue.Top.Message.Replace("%sR","").Replace("%s","");
|
||||
_ContinueHeight = GetParagraphHeight(MyContentByte, IParagraph, suffix, Width);
|
||||
}
|
||||
ProfileTimer.Pop(profileDepth);
|
||||
return _ContinueHeight;
|
||||
}
|
||||
set { _Height = value; }
|
||||
}
|
||||
public override float ToPdf(PdfContentByte cb, float yPageStart, ref float yTopMargin, ref float yBottomMargin)
|
||||
{
|
||||
int profileDepth = ProfileTimer.Push(">>>> vlnParagraph.ToPdf");
|
||||
|
Reference in New Issue
Block a user