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

GetPreviousBlankWidth() private method

private GetPreviousBlankWidth ( MigraDoc.Rendering.ParagraphIterator beforeIter ) : PdfSharp.Drawing.XUnit
beforeIter MigraDoc.Rendering.ParagraphIterator
return PdfSharp.Drawing.XUnit
    XUnit GetPreviousBlankWidth(ParagraphIterator beforeIter)
    {
      XUnit width = 0;
      ParagraphIterator savedIter = this.currentLeaf;
      this.currentLeaf = beforeIter.GetPreviousLeaf();
      while (this.currentLeaf != null)
      {
        if (this.currentLeaf.Current is BookmarkField)
          this.currentLeaf = this.currentLeaf.GetPreviousLeaf();
        else if (IsBlank(this.currentLeaf.Current))
        {
          if (!IgnoreBlank())
            width = CurrentWordDistance;

          break;
        }
        else
          break;
      }
      this.currentLeaf = savedIter;
      return width;
    }
ParagraphRenderer