API Reference
PdfPageBackgroundShape
Reusable page background shape rendered behind page content.
Inheritance
- Object
- PdfPageBackgroundShape
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property PdfOptions.PageBackgroundShapes
- Method PdfPageBackgroundShape.BottomBand
- Method PdfPageBackgroundShape.Clone
- Method PdfPageBackgroundShape.Ellipse
- Method PdfPageBackgroundShape.LeftBand
- Method PdfPageBackgroundShape.Rectangle
- Method PdfPageBackgroundShape.RightBand
- Method PdfPageBackgroundShape.RoundedRectangle
- Method PdfPageBackgroundShape.TopBand
Accepted by parameters
- Method PdfDocument.BackgroundShape
- Method PdfDocument.BackgroundShapes
- Method PdfPageCompose.BackgroundShape
- Method PdfPageCompose.BackgroundShapes
Constructors
public PdfPageBackgroundShape(OfficeShape shape, Double x, Double y) #Creates a page background shape at an absolute page position in points.
Parameters
- shape OfficeIMO.Drawing.OfficeShape
- x System.Double
- y System.Double
Methods
public static PdfPageBackgroundShape BottomBand(Double pageWidth, Double pageHeight, Double height, Nullable<PdfColor> fill = null, Double insetX = 0, Double offsetY = 0, Double cornerRadius = 0, Nullable<PdfColor> stroke = null, Double strokeWidth = 0, Nullable<Double> fillOpacity = null, Nullable<Double> strokeOpacity = null, OfficeLinearGradient fillGradient = null) #PdfPageBackgroundShapeCreates a full-width band anchored to the bottom of a page.
Parameters
- pageWidth System.Double
- pageHeight System.Double
- height System.Double
- fill System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- insetX System.Double = 0
- offsetY System.Double = 0
- cornerRadius System.Double = 0
- stroke System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- strokeWidth System.Double = 0
- fillOpacity System.Nullable{System.Double} = null
- strokeOpacity System.Nullable{System.Double} = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient = null
public PdfPageBackgroundShape Clone() #PdfPageBackgroundShapeCreates a deep copy of this page background shape.
public static PdfPageBackgroundShape Ellipse(Double x, Double y, Double width, Double height, Nullable<PdfColor> fill = null, Nullable<PdfColor> stroke = null, Double strokeWidth = 0, Nullable<Double> fillOpacity = null, Nullable<Double> strokeOpacity = null, OfficeLinearGradient fillGradient = null) #PdfPageBackgroundShapeCreates an ellipse background shape.
Parameters
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- fill System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- stroke System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- strokeWidth System.Double = 0
- fillOpacity System.Nullable{System.Double} = null
- strokeOpacity System.Nullable{System.Double} = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient = null
public static PdfPageBackgroundShape LeftBand(Double pageWidth, Double pageHeight, Double width, Nullable<PdfColor> fill = null, Double insetY = 0, Double offsetX = 0, Double cornerRadius = 0, Nullable<PdfColor> stroke = null, Double strokeWidth = 0, Nullable<Double> fillOpacity = null, Nullable<Double> strokeOpacity = null, OfficeLinearGradient fillGradient = null) #PdfPageBackgroundShapeCreates a full-height band anchored to the left side of a page.
Parameters
- pageWidth System.Double
- pageHeight System.Double
- width System.Double
- fill System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- insetY System.Double = 0
- offsetX System.Double = 0
- cornerRadius System.Double = 0
- stroke System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- strokeWidth System.Double = 0
- fillOpacity System.Nullable{System.Double} = null
- strokeOpacity System.Nullable{System.Double} = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient = null
public static PdfPageBackgroundShape Rectangle(Double x, Double y, Double width, Double height, Nullable<PdfColor> fill = null, Nullable<PdfColor> stroke = null, Double strokeWidth = 0, Nullable<Double> fillOpacity = null, Nullable<Double> strokeOpacity = null, OfficeLinearGradient fillGradient = null) #PdfPageBackgroundShapeCreates a rectangle background shape.
Parameters
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- fill System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- stroke System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- strokeWidth System.Double = 0
- fillOpacity System.Nullable{System.Double} = null
- strokeOpacity System.Nullable{System.Double} = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient = null
public static PdfPageBackgroundShape RightBand(Double pageWidth, Double pageHeight, Double width, Nullable<PdfColor> fill = null, Double insetY = 0, Double offsetX = 0, Double cornerRadius = 0, Nullable<PdfColor> stroke = null, Double strokeWidth = 0, Nullable<Double> fillOpacity = null, Nullable<Double> strokeOpacity = null, OfficeLinearGradient fillGradient = null) #PdfPageBackgroundShapeCreates a full-height band anchored to the right side of a page.
Parameters
- pageWidth System.Double
- pageHeight System.Double
- width System.Double
- fill System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- insetY System.Double = 0
- offsetX System.Double = 0
- cornerRadius System.Double = 0
- stroke System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- strokeWidth System.Double = 0
- fillOpacity System.Nullable{System.Double} = null
- strokeOpacity System.Nullable{System.Double} = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient = null
public static PdfPageBackgroundShape RoundedRectangle(Double x, Double y, Double width, Double height, Double cornerRadius, Nullable<PdfColor> fill = null, Nullable<PdfColor> stroke = null, Double strokeWidth = 0, Nullable<Double> fillOpacity = null, Nullable<Double> strokeOpacity = null, OfficeLinearGradient fillGradient = null) #PdfPageBackgroundShapeCreates a rounded rectangle background shape.
Parameters
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- cornerRadius System.Double
- fill System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- stroke System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- strokeWidth System.Double = 0
- fillOpacity System.Nullable{System.Double} = null
- strokeOpacity System.Nullable{System.Double} = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient = null
public static PdfPageBackgroundShape TopBand(Double pageWidth, Double pageHeight, Double height, Nullable<PdfColor> fill = null, Double insetX = 0, Double offsetY = 0, Double cornerRadius = 0, Nullable<PdfColor> stroke = null, Double strokeWidth = 0, Nullable<Double> fillOpacity = null, Nullable<Double> strokeOpacity = null, OfficeLinearGradient fillGradient = null) #PdfPageBackgroundShapeCreates a full-width band anchored to the top of a page.
Parameters
- pageWidth System.Double
- pageHeight System.Double
- height System.Double
- fill System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- insetX System.Double = 0
- offsetY System.Double = 0
- cornerRadius System.Double = 0
- stroke System.Nullable{OfficeIMO.Pdf.PdfColor} = null
- strokeWidth System.Double = 0
- fillOpacity System.Nullable{System.Double} = null
- strokeOpacity System.Nullable{System.Double} = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient = null
Inherited Methods
Properties
public OfficeShape Shape { get; set; } #Shape geometry and styling. Coordinates use the page bottom-left origin.
public Double X { get; set; } #Left position in points from the page left edge. Negative values are allowed for bleed-style decoration.
public Double Y { get; set; } #Bottom position in points from the page bottom edge. Negative values are allowed for bleed-style decoration.