Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfPageBackgroundShape

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision 804a7612eee4 with working tree changes
Modifiers sealed

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.

Accepted by parameters 2

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 requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2

Methods

public static PdfPageBackgroundShape BottomBand(Double pageWidth, Double pageHeight, Double height, PdfColor? fill = null, Double insetX = 0, Double offsetY = 0, Double cornerRadius = 0, PdfColor? stroke = null, Double strokeWidth = 0, Double? fillOpacity = null, Double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #
Returns: PdfPageBackgroundShape

Creates a full-width band anchored to the bottom of a page.

Parameters

pageWidth System.Double requiredposition: 0
pageHeight System.Double requiredposition: 1
height System.Double requiredposition: 2
fill OfficeIMO.Pdf.PdfColor? = null optionalposition: 3
insetX System.Double = 0 optionalposition: 4
offsetY System.Double = 0 optionalposition: 5
cornerRadius System.Double = 0 optionalposition: 6
stroke OfficeIMO.Pdf.PdfColor? = null optionalposition: 7
strokeWidth System.Double = 0 optionalposition: 8
fillOpacity System.Double? = null optionalposition: 9
strokeOpacity System.Double? = null optionalposition: 10
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optionalposition: 11
public PdfPageBackgroundShape Clone() #
Returns: PdfPageBackgroundShape

Creates a deep copy of this page background shape.

public static PdfPageBackgroundShape Ellipse(Double x, Double y, Double width, Double height, PdfColor? fill = null, PdfColor? stroke = null, Double strokeWidth = 0, Double? fillOpacity = null, Double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #
Returns: PdfPageBackgroundShape

Creates an ellipse background shape.

Parameters

x System.Double requiredposition: 0
y System.Double requiredposition: 1
width System.Double requiredposition: 2
height System.Double requiredposition: 3
fill OfficeIMO.Pdf.PdfColor? = null optionalposition: 4
stroke OfficeIMO.Pdf.PdfColor? = null optionalposition: 5
strokeWidth System.Double = 0 optionalposition: 6
fillOpacity System.Double? = null optionalposition: 7
strokeOpacity System.Double? = null optionalposition: 8
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optionalposition: 9
public static PdfPageBackgroundShape LeftBand(Double pageWidth, Double pageHeight, Double width, PdfColor? fill = null, Double insetY = 0, Double offsetX = 0, Double cornerRadius = 0, PdfColor? stroke = null, Double strokeWidth = 0, Double? fillOpacity = null, Double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #
Returns: PdfPageBackgroundShape

Creates a full-height band anchored to the left side of a page.

Parameters

pageWidth System.Double requiredposition: 0
pageHeight System.Double requiredposition: 1
width System.Double requiredposition: 2
fill OfficeIMO.Pdf.PdfColor? = null optionalposition: 3
insetY System.Double = 0 optionalposition: 4
offsetX System.Double = 0 optionalposition: 5
cornerRadius System.Double = 0 optionalposition: 6
stroke OfficeIMO.Pdf.PdfColor? = null optionalposition: 7
strokeWidth System.Double = 0 optionalposition: 8
fillOpacity System.Double? = null optionalposition: 9
strokeOpacity System.Double? = null optionalposition: 10
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optionalposition: 11
public static PdfPageBackgroundShape Rectangle(Double x, Double y, Double width, Double height, PdfColor? fill = null, PdfColor? stroke = null, Double strokeWidth = 0, Double? fillOpacity = null, Double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #
Returns: PdfPageBackgroundShape

Creates a rectangle background shape.

Parameters

x System.Double requiredposition: 0
y System.Double requiredposition: 1
width System.Double requiredposition: 2
height System.Double requiredposition: 3
fill OfficeIMO.Pdf.PdfColor? = null optionalposition: 4
stroke OfficeIMO.Pdf.PdfColor? = null optionalposition: 5
strokeWidth System.Double = 0 optionalposition: 6
fillOpacity System.Double? = null optionalposition: 7
strokeOpacity System.Double? = null optionalposition: 8
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optionalposition: 9
public static PdfPageBackgroundShape RightBand(Double pageWidth, Double pageHeight, Double width, PdfColor? fill = null, Double insetY = 0, Double offsetX = 0, Double cornerRadius = 0, PdfColor? stroke = null, Double strokeWidth = 0, Double? fillOpacity = null, Double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #
Returns: PdfPageBackgroundShape

Creates a full-height band anchored to the right side of a page.

Parameters

pageWidth System.Double requiredposition: 0
pageHeight System.Double requiredposition: 1
width System.Double requiredposition: 2
fill OfficeIMO.Pdf.PdfColor? = null optionalposition: 3
insetY System.Double = 0 optionalposition: 4
offsetX System.Double = 0 optionalposition: 5
cornerRadius System.Double = 0 optionalposition: 6
stroke OfficeIMO.Pdf.PdfColor? = null optionalposition: 7
strokeWidth System.Double = 0 optionalposition: 8
fillOpacity System.Double? = null optionalposition: 9
strokeOpacity System.Double? = null optionalposition: 10
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optionalposition: 11
public static PdfPageBackgroundShape RoundedRectangle(Double x, Double y, Double width, Double height, Double cornerRadius, PdfColor? fill = null, PdfColor? stroke = null, Double strokeWidth = 0, Double? fillOpacity = null, Double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #
Returns: PdfPageBackgroundShape

Creates a rounded rectangle background shape.

Parameters

x System.Double requiredposition: 0
y System.Double requiredposition: 1
width System.Double requiredposition: 2
height System.Double requiredposition: 3
cornerRadius System.Double requiredposition: 4
fill OfficeIMO.Pdf.PdfColor? = null optionalposition: 5
stroke OfficeIMO.Pdf.PdfColor? = null optionalposition: 6
strokeWidth System.Double = 0 optionalposition: 7
fillOpacity System.Double? = null optionalposition: 8
strokeOpacity System.Double? = null optionalposition: 9
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optionalposition: 10
public static PdfPageBackgroundShape TopBand(Double pageWidth, Double pageHeight, Double height, PdfColor? fill = null, Double insetX = 0, Double offsetY = 0, Double cornerRadius = 0, PdfColor? stroke = null, Double strokeWidth = 0, Double? fillOpacity = null, Double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #
Returns: PdfPageBackgroundShape

Creates a full-width band anchored to the top of a page.

Parameters

pageWidth System.Double requiredposition: 0
pageHeight System.Double requiredposition: 1
height System.Double requiredposition: 2
fill OfficeIMO.Pdf.PdfColor? = null optionalposition: 3
insetX System.Double = 0 optionalposition: 4
offsetY System.Double = 0 optionalposition: 5
cornerRadius System.Double = 0 optionalposition: 6
stroke OfficeIMO.Pdf.PdfColor? = null optionalposition: 7
strokeWidth System.Double = 0 optionalposition: 8
fillOpacity System.Double? = null optionalposition: 9
strokeOpacity System.Double? = null optionalposition: 10
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optionalposition: 11

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.