ZipArchive.CompressionLevel Property
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9119)
CompressionLevel
Gets or sets the compression level to be used by Add(String) and AddFile(String) methods. Possible values are 0-9, where 0 means no compression (fastest) and 9 means best compression (slowest). 6 (medium compression and speed) is a default value.
Declaration
public int CompressionLevel { get; set; }
Property Value
Type | Description |
---|---|
Int32 | Compression level (0-9), where 0 means no compression (fastest) and 9 means best compression (slowest). 6 (medium compression and speed) is a default value. |
Remarks
0 means no compression; 1 is the fastest compression (but the worst compression ratio); 9 is the slowest compression (but the best compression ratio).
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | The |