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>