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

ProbeAfterTab() private method

Probes the paragraph after a tab. Caution: This Function resets the word count and line width before doing its work.
private ProbeAfterTab ( ) : bool
return bool
    bool ProbeAfterTab()
    {
      this.currentLineWidth = 0;
      this.currentBlankCount = 0;
      //Extra for auto tab after list symbol

      //TODO: KLPO4KLPO: Check if this conditional statement is still required
      if (this.currentLeaf != null && IsTab(this.currentLeaf.Current))
        this.currentLeaf = this.currentLeaf.GetNextLeaf();

      bool wordAppeared = false;
      while (this.currentLeaf != null && !IsLineBreak(this.currentLeaf.Current) && !IsTab(this.currentLeaf.Current))
      {
        FormatResult result = FormatElement(this.currentLeaf.Current);
        if (result != FormatResult.Continue)
          break;

        wordAppeared = wordAppeared || IsWordLikeElement(this.currentLeaf.Current);
        this.currentLeaf = this.currentLeaf.GetNextLeaf();
      }
      return this.currentLeaf != null && !IsLineBreak(this.currentLeaf.Current) &&
        !IsTab(this.currentLeaf.Current) && !wordAppeared;
    }
ParagraphRenderer