MigraDoc.Rendering.ParagraphRenderer.EndUnderline C# (CSharp) Method

EndUnderline() private method

private EndUnderline ( PdfSharp.Drawing.XPen pen, PdfSharp.Drawing.XUnit xPosition ) : void
pen PdfSharp.Drawing.XPen
xPosition PdfSharp.Drawing.XUnit
return void
    void EndUnderline(XPen pen, XUnit xPosition)
    {
      //Removed KlPo 06.06.07
      //XUnit yPosition = this.currentYPosition + this.currentVerticalInfo.height + pen.Width / 2;
      //yPosition -= 0.66 * this.currentVerticalInfo.descent;

      //New KlPo 
      XUnit yPosition = CurrentBaselinePosition;
      yPosition += 0.33 * this.currentVerticalInfo.descent;
      this.gfx.DrawLine(pen, this.underlineStartPos, yPosition, xPosition, yPosition);
    }
ParagraphRenderer