Class ExcelCellPicture
Represents an in-cell picture
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OfficeOpenXml.CellPictures
Assembly: EPPlus.dll
Syntax
public class ExcelCellPicture : RichDataReferenceValueError
Properties
AltText
Alt text of the image
Declaration
public string AltText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CellAddress
Address of the cell picture
Declaration
public ExcelAddress CellAddress { get; }
Property Value
Type | Description |
---|---|
ExcelAddress |
ExternalAddress
External Uri, only set for images retrieved via the IMAGE function
Declaration
public Uri ExternalAddress { get; }
Property Value
Type | Description |
---|---|
System.Uri |
FileName
Name of the image file including file extension
Declaration
public string FileName { get; }
Property Value
Type | Description |
---|---|
System.String |
PictureType
Type of cell picture
Declaration
public ExcelCellPictureTypes PictureType { get; }
Property Value
Type | Description |
---|---|
ExcelCellPictureTypes |
Methods
GetImage()
Returns the ExcelImage with information abount the image file.
Declaration
public ExcelImage GetImage()
Returns
Type | Description |
---|---|
ExcelImage | The ExcelImage object. |
Exceptions
Type | Condition |
---|---|
System.IO.InvalidDataException |
GetImageBytes()
The bytes of the image file
Declaration
public byte[] GetImageBytes()
Returns
Type | Description |
---|---|
System.Byte[] |