LoadOptions.InterruptMonitor
LoadOptions.InterruptMonitor property
Gets and sets the interrupt monitor.
public AbstractInterruptMonitor InterruptMonitor { get; set; }
Examples
using System;
using System.IO;
using Aspose.Cells;
namespace AsposeCellsExamples
{
public class LoadOptionsPropertyInterruptMonitorDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
workbook.Worksheets[0].Cells["A1"].PutValue("Sample Data");
MemoryStream stream = new MemoryStream();
workbook.Save(stream, SaveFormat.Xlsx);
stream.Seek(0, SeekOrigin.Begin);
Workbook loadedWorkbook = new Workbook(stream, new LoadOptions {
InterruptMonitor = new CustomInterruptMonitor()
});
loadedWorkbook.Save("Output.xlsx");
}
}
public class CustomInterruptMonitor : AbstractInterruptMonitor
{
public override bool IsInterruptionRequested
{
get { return false; }
}
}
}
See Also
- class AbstractInterruptMonitor
- class LoadOptions
- namespace Aspose.Cells
- assembly Aspose.Cells