Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfPageBackgroundShape

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 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, OfficeLength x, OfficeLength y) #

Creates a page background shape at an absolute page position in points.

Parameters

shape OfficeIMO.Drawing.OfficeShape required
x OfficeIMO.OfficeLength required
y OfficeIMO.OfficeLength required

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 required
pageHeight OfficeIMO.OfficeLength required
height OfficeIMO.OfficeLength required
fill OfficeIMO.OfficeColor? = null optional
insetX OfficeIMO.OfficeLength = default optional
offsetY OfficeIMO.OfficeLength = default optional
cornerRadius OfficeIMO.OfficeLength = default optional
stroke OfficeIMO.OfficeColor? = null optional
strokeWidth OfficeIMO.OfficeLength = default optional
fillOpacity double? = null optional
strokeOpacity double? = null optional
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optional
public PdfPageBackgroundShape Clone() #

Creates a deep copy of this page background shape.

public 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 required
y OfficeIMO.OfficeLength required
width OfficeIMO.OfficeLength required
height OfficeIMO.OfficeLength required
fill OfficeIMO.OfficeColor? = null optional
stroke OfficeIMO.OfficeColor? = null optional
strokeWidth OfficeIMO.OfficeLength = default optional
fillOpacity double? = null optional
strokeOpacity double? = null optional
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optional
public 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 required
pageHeight OfficeIMO.OfficeLength required
width OfficeIMO.OfficeLength required
fill OfficeIMO.OfficeColor? = null optional
insetY OfficeIMO.OfficeLength = default optional
offsetX OfficeIMO.OfficeLength = default optional
cornerRadius OfficeIMO.OfficeLength = default optional
stroke OfficeIMO.OfficeColor? = null optional
strokeWidth OfficeIMO.OfficeLength = default optional
fillOpacity double? = null optional
strokeOpacity double? = null optional
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optional
public 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 required
y OfficeIMO.OfficeLength required
width OfficeIMO.OfficeLength required
height OfficeIMO.OfficeLength required
fill OfficeIMO.OfficeColor? = null optional
stroke OfficeIMO.OfficeColor? = null optional
strokeWidth OfficeIMO.OfficeLength = default optional
fillOpacity double? = null optional
strokeOpacity double? = null optional
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optional
public 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 required
pageHeight OfficeIMO.OfficeLength required
width OfficeIMO.OfficeLength required
fill OfficeIMO.OfficeColor? = null optional
insetY OfficeIMO.OfficeLength = default optional
offsetX OfficeIMO.OfficeLength = default optional
cornerRadius OfficeIMO.OfficeLength = default optional
stroke OfficeIMO.OfficeColor? = null optional
strokeWidth OfficeIMO.OfficeLength = default optional
fillOpacity double? = null optional
strokeOpacity double? = null optional
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optional
public 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 required
y OfficeIMO.OfficeLength required
width OfficeIMO.OfficeLength required
height OfficeIMO.OfficeLength required
cornerRadius OfficeIMO.OfficeLength required
fill OfficeIMO.OfficeColor? = null optional
stroke OfficeIMO.OfficeColor? = null optional
strokeWidth OfficeIMO.OfficeLength = default optional
fillOpacity double? = null optional
strokeOpacity double? = null optional
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optional
public 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 required
pageHeight OfficeIMO.OfficeLength required
height OfficeIMO.OfficeLength required
fill OfficeIMO.OfficeColor? = null optional
insetX OfficeIMO.OfficeLength = default optional
offsetY OfficeIMO.OfficeLength = default optional
cornerRadius OfficeIMO.OfficeLength = default optional
stroke OfficeIMO.OfficeColor? = null optional
strokeWidth OfficeIMO.OfficeLength = default optional
fillOpacity double? = null optional
strokeOpacity double? = null optional
fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null optional

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.