C# Class PdfRpt.Core.Helper.GradientBackground

Draws a rectangular gradient background color.
显示文件 Open project: VahidN/PdfReport

Public Methods

Method Description
ApplyGradientBackground ( RowType pdfRowType, PdfRpt.Core.Contracts.CellSharedData sharedData, Rectangle position, PdfContentByte canvases ) : void

Draws a rectangular gradient background color.

DrawGradientBackground ( this position, PdfContentByte canvases, BaseColor startColor, BaseColor endColor ) : void

Draws a rectangular gradient background color.

Method Details

ApplyGradientBackground() public static method

Draws a rectangular gradient background color.
public static ApplyGradientBackground ( RowType pdfRowType, PdfRpt.Core.Contracts.CellSharedData sharedData, Rectangle position, PdfContentByte canvases ) : void
pdfRowType RowType Main table's row types
sharedData PdfRpt.Core.Contracts.CellSharedData PdfCells Shared Data
position iTextSharp.text.Rectangle The coordinates of the cell
canvases iTextSharp.text.pdf.PdfContentByte An array of PdfContentByte to add text or graphics
return void

DrawGradientBackground() public static method

Draws a rectangular gradient background color.
public static DrawGradientBackground ( this position, PdfContentByte canvases, BaseColor startColor, BaseColor endColor ) : void
position this The coordinates of the cell
canvases iTextSharp.text.pdf.PdfContentByte An array of PdfContentByte to add text or graphics
startColor iTextSharp.text.BaseColor Gradient's Start Color
endColor iTextSharp.text.BaseColor Gradient's End Color
return void