C# Class PdfRpt.ColumnsItemsTemplates.ImageFilePathField

Displaying current cell's data as an Image. It's assumed that this data point to the physical image's path on the disk.
Inheritance: IColumnItemsTemplate
ファイルを表示 Open project: VahidN/PdfReport

Public Methods

Method Description
CellRendered ( PdfPCell cell, Rectangle position, PdfContentByte canvases, PdfRpt.Core.Contracts.CellAttributes attributes ) : void

This method is called at the end of the cell's rendering.

ImageFilePathField ( ) : System

Displaying current cell's data as an Image. It's assumed that this data point to the physical image's path on the disk.

ImageFilePathField ( string defaultImageFilePath, bool fitImages, bool cacheImages = true ) : System

Displaying current cell's data as an Image. It's assumed that this data point to the physical image's path on the disk.

RenderingCell ( PdfRpt.Core.Contracts.CellAttributes attributes ) : PdfPCell

Custom cell's content template as a PdfPCell

Private Methods

Method Description
getImage ( PdfRpt.Core.Contracts.CellAttributes attributes ) : Image

Method Details

CellRendered() public method

This method is called at the end of the cell's rendering.
public CellRendered ( PdfPCell cell, Rectangle position, PdfContentByte canvases, PdfRpt.Core.Contracts.CellAttributes attributes ) : void
cell iTextSharp.text.pdf.PdfPCell The current cell
position iTextSharp.text.Rectangle The coordinates of the cell
canvases iTextSharp.text.pdf.PdfContentByte An array of PdfContentByte to add text or graphics
attributes PdfRpt.Core.Contracts.CellAttributes Current cell's custom attributes
return void

ImageFilePathField() public method

Displaying current cell's data as an Image. It's assumed that this data point to the physical image's path on the disk.
public ImageFilePathField ( ) : System
return System

ImageFilePathField() public method

Displaying current cell's data as an Image. It's assumed that this data point to the physical image's path on the disk.
public ImageFilePathField ( string defaultImageFilePath, bool fitImages, bool cacheImages = true ) : System
defaultImageFilePath string Default image will be used in case of missing images
fitImages bool Set fitImages to true to fit the image to the cell
cacheImages bool If true, the image bytes will be added to the PDF only once, not per each new instance. Therefore the result won't be a bloated PDF file. Choose this option if there are many similar images in your data source.
return System

RenderingCell() public method

Custom cell's content template as a PdfPCell
public RenderingCell ( PdfRpt.Core.Contracts.CellAttributes attributes ) : PdfPCell
attributes PdfRpt.Core.Contracts.CellAttributes
return iTextSharp.text.pdf.PdfPCell