PdfPageBackgroundShape
OfficeIMO.Pdf
Reusable page background shape rendered behind page content.
Inheritance
- object
- PdfPageBackgroundShape
Usage
Explore 11 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 9
- Property PdfCreateOptions.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 2
Constructors
public PdfPageBackgroundShape(OfficeShape shape, OfficeLength x, OfficeLength y) #Creates a page background shape at an absolute page position in points.
Parameters
- shape OfficeIMO.Drawing.OfficeShape
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
Methods
public static PdfPageBackgroundShape BottomBand(OfficeLength pageWidth, OfficeLength pageHeight, OfficeLength height, OfficeColor? fill = null, OfficeLength insetX = default, OfficeLength offsetY = default, OfficeLength cornerRadius = default, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Creates a full-width band anchored to the bottom of a page.
Parameters
- pageWidth OfficeIMO.OfficeLength
- pageHeight OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- insetX OfficeIMO.OfficeLength = default
- offsetY OfficeIMO.OfficeLength = default
- cornerRadius OfficeIMO.OfficeLength = default
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBackgroundShapepublic PdfPageBackgroundShape Clone() #Creates a deep copy of this page background shape.
Returns
PdfPageBackgroundShapepublic static PdfPageBackgroundShape Ellipse(OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, OfficeColor? fill = null, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Creates an ellipse background shape.
Parameters
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBackgroundShapepublic static PdfPageBackgroundShape LeftBand(OfficeLength pageWidth, OfficeLength pageHeight, OfficeLength width, OfficeColor? fill = null, OfficeLength insetY = default, OfficeLength offsetX = default, OfficeLength cornerRadius = default, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Creates a full-height band anchored to the left side of a page.
Parameters
- pageWidth OfficeIMO.OfficeLength
- pageHeight OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- insetY OfficeIMO.OfficeLength = default
- offsetX OfficeIMO.OfficeLength = default
- cornerRadius OfficeIMO.OfficeLength = default
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBackgroundShapepublic static PdfPageBackgroundShape Rectangle(OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, OfficeColor? fill = null, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Creates a rectangle background shape.
Parameters
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBackgroundShapepublic static PdfPageBackgroundShape RightBand(OfficeLength pageWidth, OfficeLength pageHeight, OfficeLength width, OfficeColor? fill = null, OfficeLength insetY = default, OfficeLength offsetX = default, OfficeLength cornerRadius = default, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Creates a full-height band anchored to the right side of a page.
Parameters
- pageWidth OfficeIMO.OfficeLength
- pageHeight OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- insetY OfficeIMO.OfficeLength = default
- offsetX OfficeIMO.OfficeLength = default
- cornerRadius OfficeIMO.OfficeLength = default
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBackgroundShapepublic static PdfPageBackgroundShape RoundedRectangle(OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, OfficeLength cornerRadius, OfficeColor? fill = null, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Creates a rounded rectangle background shape.
Parameters
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- cornerRadius OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBackgroundShapepublic static PdfPageBackgroundShape TopBand(OfficeLength pageWidth, OfficeLength pageHeight, OfficeLength height, OfficeColor? fill = null, OfficeLength insetX = default, OfficeLength offsetY = default, OfficeLength cornerRadius = default, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Creates a full-width band anchored to the top of a page.
Parameters
- pageWidth OfficeIMO.OfficeLength
- pageHeight OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- insetX OfficeIMO.OfficeLength = default
- offsetY OfficeIMO.OfficeLength = default
- cornerRadius OfficeIMO.OfficeLength = default
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBackgroundShapeInherited Methods
Properties
public OfficeShape Shape { get; set; } #Shape geometry and styling. Coordinates use the page bottom-left origin.
public OfficeLength X { get; set; } #Left position in points from the page left edge. Negative values are allowed for bleed-style decoration.
public OfficeLength Y { get; set; } #Bottom position in points from the page bottom edge. Negative values are allowed for bleed-style decoration.
public bool FirstPageOnly { get; set; } #When true, the shape is drawn on the first page only, such as a title band that would otherwise sit behind body text on continuation pages.