private PdfLine RemoveLine(int index) {
PdfLine oldLine = (PdfLine)lines[index];
lines.RemoveAt(index);
contentHeight -= oldLine.Height;
if (index == 0) {
if (lines.Count > 0) {
firstLine = (PdfLine) lines[0];
float firstLineRealHeight = FirstLineRealHeight;
contentHeight -= firstLine.Height;
firstLine.height = firstLineRealHeight;
contentHeight += firstLineRealHeight;
}
}
return oldLine;
}