PdfRpt.Core.PdfTable.TableCellHelper.AddHeaderCell C# (CSharp) Method

AddHeaderCell() public method

Adds a new header PdfPCell to the MainTable
public AddHeaderCell ( int columnNumber, int colSpan ) : PdfRpt.Core.Contracts.CellAttributes
columnNumber int
colSpan int
return PdfRpt.Core.Contracts.CellAttributes
        public CellAttributes AddHeaderCell(int columnNumber, int colSpan)
        {
            var col = SharedData.PdfColumnsAttributes[columnNumber];
            return AddGeneralCell(
                SharedData.Template.HeaderBackgroundColor[0],
                SharedData.Template.HeaderFontColor,
                col.HeaderCell.Caption,
                columnNumber,
                RowType.HeaderRow,
                CellType.HeaderCell,
                pdfFontStyle: DocumentFontStyle.Bold,
                rotation: col.HeaderCell.CaptionRotation,
                horizontalAlignment: col.HeaderCell.HorizontalAlignment == null ? SharedData.Template.HeaderHorizontalAlignment : col.HeaderCell.HorizontalAlignment.Value,
                colSpan: colSpan);
        }