PdfRpt.Calendar.MonthCalendar.setCommonPdfPCellProperties C# (CSharp) Method

setCommonPdfPCellProperties() private method

private setCommonPdfPCellProperties ( PdfPCell cell, int horizontalAlignment = Element.ALIGN_CENTER ) : void
cell iTextSharp.text.pdf.PdfPCell
horizontalAlignment int
return void
        private void setCommonPdfPCellProperties(PdfPCell cell, int horizontalAlignment = Element.ALIGN_CENTER)
        {
            if (cell == null)
                return;

            cell.RunDirection = runDirection;
            cell.HorizontalAlignment = horizontalAlignment;
            cell.VerticalAlignment = Element.ALIGN_MIDDLE;
            cell.UseAscender = true;
            cell.UseDescender = true;
            cell.BorderColor = CalendarAttributes.BorderColor;
        }