public void CloseCurrentLine(int lineWidth, int lineHeight)
{
currentLine.SetPostArrangeLineSize(lineWidth, lineHeight);
if (isMultiLine)
{
if (currentRelocatorLineId < sourceLines.Count - 1)
{
++currentRelocatorLineId;
currentLine = sourceLines[currentRelocatorLineId];
}
else
{
currentRelocatorLineId++;
EditableTextLine newLine = new EditableTextLine(flowLayer);
flowLayer.AppendLine(newLine);
currentLine = newLine;
}
}
else
{
currentRelocatorLineId++;
EditableTextLine newLine = new EditableTextLine(flowLayer);
flowLayer.AppendLine(newLine);
sourceLines = (List <EditableTextLine>)flowLayer.lineCollection;
currentLine = newLine;
isMultiLine = true;
}
isFirstRunOfLine = true;
}