ExcelImageType enum

Supported image formats for embedding in Excel worksheets.

All formats are natively supported by Microsoft Excel. Use ExcelImageType.fromExtension to infer the type from a file path.

Inheritance
Available extensions

Values

png → const ExcelImageType

Portable Network Graphics (.png)

jpeg → const ExcelImageType

JPEG / JFIF (.jpg / .jpeg)

gif → const ExcelImageType

Graphics Interchange Format (.gif)

bmp → const ExcelImageType

Windows Bitmap (.bmp)

tiff → const ExcelImageType

Tagged Image File Format (.tif / .tiff)

wmf → const ExcelImageType

Windows Metafile (.wmf)

emf → const ExcelImageType

Enhanced Metafile (.emf)

svg → const ExcelImageType

Scalable Vector Graphics (.svg) — Excel 2016+ / 365

webp → const ExcelImageType

WebP (.webp) — Excel 365 (Windows/Mac)

ico → const ExcelImageType

ICON (.ico)

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<ExcelImageType>
A constant List of the values in this enum, in order of their declaration.