Table of Contents

Class ExcelBackgroundImage

Namespace
OfficeOpenXml
Assembly
EPPlus.dll

An image that fills the background of the worksheet.

public class ExcelBackgroundImage : XmlHelper
Inheritance
ExcelBackgroundImage
Inherited Members

Properties

Image

The background image of the worksheet. Note that images of type .svg, .ico and .webp is not supported as background images.

public ExcelImage Image { get; }

Property Value

ExcelImage

Methods

Remove()

Removes the background image.

public void Remove()

SetFromFile(FileInfo)

Set the picture from an image file.

public void SetFromFile(FileInfo PictureFile)

Parameters

PictureFile FileInfo

The image file. Files of type .svg, .ico and .webp is not supported for background images

SetFromFile(string)

Set the picture from an image file.

public void SetFromFile(string PictureFilePath)

Parameters

PictureFilePath string

The path to the image file. Files of type .svg, .ico and .webp is not supported for background images