Skip to content

Class ExcelCellPicture

Namespace: OfficeOpenXml.CellPictures
Assembly: EPPlus.dll

Represents an in-cell picture

public class ExcelCellPicture : RichDataReferenceValueError, IEqualityComparer<ExcelErrorValue>

Inheritance

object ← ExcelErrorValue ← RichDataReferenceValueError ← ExcelCellPicture

Implements

IEqualityComparer<ExcelErrorValue>

Inherited Members

ExcelErrorValue.AsCompileResult
ExcelErrorValue.Create(eErrorType)
ExcelErrorValue.Equals(ExcelErrorValue, ExcelErrorValue)
ExcelErrorValue.Equals(object)
ExcelErrorValue.GetHashCode()
ExcelErrorValue.GetHashCode(ExcelErrorValue)
ExcelErrorValue.Parse(string)
ExcelErrorValue.ToString()
ExcelErrorValue.Type
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
RichDataReferenceValueError.ReferenceType

Properties

AltText

Alt text of the image

public string AltText { get; set; }

Property Value

string

CellAddress

Address of the cell picture

public ExcelAddress CellAddress { get; }

Property Value

ExcelAddress

ExternalAddress

External Uri, only set for images retrieved via the IMAGE function

public Uri ExternalAddress { get; }

Property Value

Uri

FileName

Name of the image file including file extension

public string FileName { get; }

Property Value

string

PictureType

Type of cell picture

public ExcelCellPictureTypes PictureType { get; }

Property Value

ExcelCellPictureTypes

Methods

GetImage()

Returns the ExcelImage with information abount the image file.

public ExcelImage GetImage()

Returns

ExcelImage

The ExcelImage object.

Exceptions

InvalidDataException

GetImageBytes()

The bytes of the image file

public byte[] GetImageBytes()

Returns

byte[]