Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ZipArchive.UpdateText(String, String) Method

Updates the content of the zip text item.

Namespace: DevExpress.Compression

Assembly: DevExpress.Docs.v24.2.dll

NuGet Package: DevExpress.Document.Processor

#Declaration

public ZipTextItem UpdateText(
    string name,
    string content
)

#Parameters

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.

#Returns

Type Description
ZipTextItem

A ZipTextItem object that is the updated zip text item.

#Remarks

The UpdateText method removes an item from the archive, creates a new zip text item with the same name and the new content 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