Skip to main content

ZipArchive.UpdateText(String, String, Encoding) Method

Updates the content of the zip text item and specifies a new character encoding.

Namespace: DevExpress.Compression

Assembly: DevExpress.Docs.v24.1.dll

NuGet Package: DevExpress.Document.Processor


public ZipTextItem UpdateText(
    string name,
    string content,
    Encoding encoding


Name Type Description
name String

A string that is the name of the zip text item to update.

content String

A string that is the new text content of the zip text item.

encoding Encoding

A Encoding object that specifies the character encoding of the text content.


Type Description

A ZipTextItem object that is the updated zip text item.


The UpdateText method removes an item from the archive, creates a new zip text item with the same name, new content and character encoding, and adds it to the archive.

If an item is not found, it is created.

Use the ZipArchive.Read to load the archive to be updated. To save the updated archive, use the ZipArchive.Save method.

See Also