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

StartNewLine() private method

Starts a new line by resetting measuring values. Do not call before the first first line is formatted!
private StartNewLine ( ) : bool
return bool
    bool StartNewLine()
    {
      this.tabOffsets = new ArrayList();
      this.lastTab = null;
      this.lastTabPosition = 0;
      this.currentYPosition += this.currentVerticalInfo.height;
#if true
      Rectangle rect = this.formattingArea.GetFittingRect(currentYPosition, this.currentVerticalInfo.height + BottomBorderOffset);
      if (rect == null)
        return false;

      this.isFirstLine = false;
      this.currentXPosition = StartXPosition; // depends on "currentVerticalInfo"
      this.currentVerticalInfo = new VerticalLineInfo();
      this.currentVerticalInfo = CalcCurrentVerticalInfo();
#else
      if (this.formattingArea.GetFittingRect(currentYPosition, this.currentVerticalInfo.height + BottomBorderOffset) == null)
        return false;

      this.currentVerticalInfo = new VerticalLineInfo();
      this.currentVerticalInfo = CalcCurrentVerticalInfo();
      this.isFirstLine = false;
      this.currentXPosition = this.StartXPosition;
#endif
      this.startLeaf = this.currentLeaf;
      this.currentBlankCount = 0;
      this.currentWordsWidth = 0;
      this.currentLineWidth = 0;
      return true;
    }
    /// <summary>
ParagraphRenderer