Skip to main content
Row

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

Workbook.Dispose() Method

Releases resources associated with a Workbook instance.

You need a license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use this method in production code.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Docs.v24.2.dll

NuGet Package: DevExpress.Document.Processor

#Declaration

public void Dispose()

#Remarks

When you finish working with a Workbook instance, call the Dispose method to release all the resources used by the object. This action helps you avoid memory leaks and speed up system performance. You can also modify your Workbook within the using statement (Using block in Visual Basic).

// Add a reference to the DevExpress.Docs.dll assembly.
using DevExpress.Spreadsheet;
// ...

// Create a Workbook instance.
Workbook workbook = new Workbook();

// Modify the workbook.
// ...

// Dispose the workbook.
workbook.Dispose();

#Implements

See Also