private void InitRendering()
{
this.phase = Phase.Rendering;
ParagraphFormatInfo parFormatInfo = (ParagraphFormatInfo)this.renderInfo.FormatInfo;
if (parFormatInfo.LineCount == 0)
return;
this.isFirstLine = parFormatInfo.IsStarting;
LineInfo lineInfo = parFormatInfo.GetFirstLineInfo();
Area contentArea = this.renderInfo.LayoutInfo.ContentArea;
this.currentYPosition = contentArea.Y + TopBorderOffset;
// StL: GetFittingRect liefert manchmal null
Rectangle rect = contentArea.GetFittingRect(this.currentYPosition, lineInfo.vertical.height);
if (rect != null)
this.currentXPosition = rect.X;
this.currentLineWidth = 0;
}