C# Class PdfRpt.Core.Helper.TableCellDefinitionsExt

PdfCellAttributes helper class.
显示文件 Open project: VahidN/PdfReport

Public Methods

Method Description
ApplyStyles ( this pdfPCell, PdfRpt.Core.Contracts.CellAttributes pdfRptTableCellDefinition ) : void

Applies PdfCellAttributes to a PdfPCell.

CreateSafePdfPCell ( this pdfRptTableCellDefinition, IColumnItemsTemplate defaultItemTemplate ) : PdfPCell

Create a PdfPCell based on the PdfCell Attributes.

MapBasicPropertiesTo ( this fromPdfCellAttributes, CellBasicProperties toPdfCellAttributes ) : void

Maps ItemTemplate.BasicProperties to pdfRptTableCellDefinition.BasicProperties.

Private Methods

Method Description
applyTemplateColors ( CellBasicProperties from, CellBasicProperties to ) : void
mapBasicProperties ( PdfRpt.Core.Contracts.CellAttributes pdfRptTableCellDefinition ) : void
runConditionalFormatFormula ( PdfRpt.Core.Contracts.CellAttributes pdfRptTableCellDefinition ) : void
runOnItemsTemplate ( PdfRpt.Core.Contracts.CellAttributes pdfRptTableCellDefinition, IColumnItemsTemplate defaultItemTemplate ) : PdfPCell

Method Details

ApplyStyles() public static method

Applies PdfCellAttributes to a PdfPCell.
public static ApplyStyles ( this pdfPCell, PdfRpt.Core.Contracts.CellAttributes pdfRptTableCellDefinition ) : void
pdfPCell this A PdfPCell.
pdfRptTableCellDefinition PdfRpt.Core.Contracts.CellAttributes PdfCell Attributes
return void

CreateSafePdfPCell() public static method

Create a PdfPCell based on the PdfCell Attributes.
public static CreateSafePdfPCell ( this pdfRptTableCellDefinition, IColumnItemsTemplate defaultItemTemplate ) : PdfPCell
pdfRptTableCellDefinition this PdfCell Attributes
defaultItemTemplate IColumnItemsTemplate Default ItemTemplate
return iTextSharp.text.pdf.PdfPCell

MapBasicPropertiesTo() public static method

Maps ItemTemplate.BasicProperties to pdfRptTableCellDefinition.BasicProperties.
public static MapBasicPropertiesTo ( this fromPdfCellAttributes, CellBasicProperties toPdfCellAttributes ) : void
fromPdfCellAttributes this From PdfCell Attributes
toPdfCellAttributes PdfRpt.Core.Contracts.CellBasicProperties To PdfCell Attributes
return void