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

RenderWord() private method

private RenderWord ( string word ) : void
word string
return void
    void RenderWord(string word)
    {
      Font font = this.CurrentDomFont;
      XFont xFont = CurrentFont;
      if (font.Subscript || font.Superscript)
        xFont = FontHandler.ToSubSuperFont(xFont);

      this.gfx.DrawString(word, xFont, CurrentBrush, this.currentXPosition, CurrentBaselinePosition);
      XUnit wordWidth = MeasureString(word);
      RenderUnderline(wordWidth, true);
      RealizeHyperlink(wordWidth);
      this.currentXPosition += wordWidth;
    }
ParagraphRenderer