Skip to content

Delegate SetCompressionCallback

Namespace: OfficeOpenXml.Packaging.Ionic.Zip
Assembly: EPPlus.dll

Delegate for the callback by which the application tells the library the CompressionLevel to use for a file.

public delegate CompressionLevel SetCompressionCallback(string localFileName, string fileNameInArchive)

Parameters

localFileName string

fileNameInArchive string

Returns

CompressionLevel

Remarks

Using this callback, the application can, for example, specify that previously-compressed files (.mp3, .png, .docx, etc) should use a CompressionLevel of None, or can set the compression level based on any other factor.

See Also

ZipFile.SetCompression