iTextSharp.text.pdf.PdfPTable.GetRowspanHeight C# (CSharp) Метод

GetRowspanHeight() публичный Метод

public GetRowspanHeight ( int rowIndex, int cellIndex ) : float
rowIndex int
cellIndex int
Результат float
        public float GetRowspanHeight(int rowIndex, int cellIndex)
        {
            if (totalWidth <= 0 || rowIndex < 0 || rowIndex >= rows.Count)
                return 0;
            PdfPRow row = rows[rowIndex];
            if (row == null || cellIndex >= row.GetCells().Length)
                return 0;
            PdfPCell cell = row.GetCells()[cellIndex];
            if (cell == null)
                return 0;
            float rowspanHeight = 0;
            for (int j = 0; j < cell.Rowspan; j++)
            {
                rowspanHeight += GetRowHeight(rowIndex + j);
            }
            return rowspanHeight;
        }