CompressionLevel enumeration

CompressionLevel enumeration

Specifies ZIP compression levels for OpenXML file. Higher levels provide better compression at the cost of slower processing.

The CompressionLevel type exposes the following members:

Fields

FieldDescription
NONENo compression is applied. Files are stored as-is.
LEVEL1Fastest compression with the lowest compression ratio.
LEVEL2Faster compression with slightly better compression ratio than CompressionLevel.LEVEL1.
LEVEL3Provides better compression than CompressionLevel.LEVEL2 with moderate performance impact.
LEVEL4Provides better compression than CompressionLevel.LEVEL3.
LEVEL5Provides improved compression over CompressionLevel.LEVEL4 with additional processing time.
LEVEL6Standard compression, offering a good balance between compression speed and file size.
The default compression level.
LEVEL7Provides higher compression than CompressionLevel.LEVEL6 with slower processing.
LEVEL8Provides higher compression than CompressionLevel.LEVEL7.
LEVEL9Maximum compression. Produces the smallest file size with the slowest processing speed.

See Also