C# Class PdfRpt.Core.Helper.GradientBackground

Draws a rectangular gradient background color.
Afficher le fichier Open project: VahidN/PdfReport

Méthodes publiques

Méthode 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 méthode

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
Résultat void

DrawGradientBackground() public static méthode

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
Résultat void