This commit is contained in:
@@ -8,46 +8,27 @@ using VEPROMS.CSLA.Library;
|
||||
|
||||
namespace Volian.Print.Library
|
||||
{
|
||||
public partial class vlnHeader : vlnPrintObject
|
||||
public partial class vlnHeader: vlnText
|
||||
{
|
||||
public float HeaderWidth
|
||||
{
|
||||
get { return _WidthAdjust + (_CharsToTwips * HeaderText.Length); }
|
||||
get { return _WidthAdjust + (_CharsToTwips * Text.Length); }
|
||||
}
|
||||
private string _HeaderText;
|
||||
public string HeaderText
|
||||
{
|
||||
get { return _HeaderText; }
|
||||
set { _HeaderText = value; }
|
||||
}
|
||||
private VE_Font _MyFont;
|
||||
public VE_Font MyFont
|
||||
{
|
||||
get { return _MyFont; }
|
||||
set { _MyFont = value; }
|
||||
}
|
||||
private ContentAlignment _ContentAlignment;
|
||||
public ContentAlignment ContentAlignment
|
||||
{
|
||||
get { return _ContentAlignment; }
|
||||
set { _ContentAlignment = value; }
|
||||
}
|
||||
public vlnHeader(vlnParagraph myParent, PdfContentByte cb, string origStr, string cleanStr, float xoffset, float yoffset, VE_Font vFont, System.Drawing.ContentAlignment ca)
|
||||
public vlnHeader(vlnParagraph myParent, PdfContentByte cb, string origStr, string cleanStr, float xoffset, float yoffset, VE_Font vFont)
|
||||
{
|
||||
MyParent = myParent;
|
||||
MyContentByte = cb;
|
||||
YOffset = yoffset;
|
||||
Width = MyParent.Width;
|
||||
HeaderText = cleanStr;
|
||||
Text = cleanStr;
|
||||
Rtf = GetRtf(origStr, vFont);
|
||||
XOffset = xoffset;
|
||||
MyFont = vFont;
|
||||
ContentAlignment = ca;
|
||||
}
|
||||
public override float ToPdf(PdfContentByte cb, float yPageStart, float yTopMargin, float yBottomMargin)
|
||||
{
|
||||
float yLocation = CalculateYOffset(yPageStart, yTopMargin);
|
||||
Rtf2Pdf.TextAt(cb, IParagraph, XOffset, yLocation, HeaderWidth, 100, "");
|
||||
Rtf2Pdf.TextAt(cb, IParagraph, XOffset, yLocation, HeaderWidth, 100, "", yBottomMargin);
|
||||
return yPageStart;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user