Class SaveOptions
Abstract base class for all save/export options. Format-specific options classes (PptxSaveOptions, ImageSaveOptions, PdfSaveOptions, XpsSaveOptions, HtmlOptions) inherit from this class.
Common properties available on all save options:
- ProgressCallback — receive progress updates during long saves.
- InterruptionToken — cooperatively cancel a long save.
Inheritance
SaveOptions
Inherited Members
Namespace: DRIT.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public abstract class SaveOptions
Properties
CancellationToken
Gets or sets a cancellation token for cooperative cancellation of save operations. When set, this takes precedence over InterruptionToken.
Declaration
public CancellationToken CancellationToken { get; set; }
Property Value
| Type | Description |
|---|---|
| CancellationToken |
InterruptionToken
Gets or sets the interruption token for cooperative cancellation. When set, the save pipeline checks IsCancellationRequested periodically and throws OperationCanceledException if cancellation is requested.
Declaration
public InterruptionToken InterruptionToken { get; set; }
Property Value
| Type | Description |
|---|---|
| InterruptionToken |
ProgressCallback
Gets or sets the progress callback for reporting save progress. When set, the save pipeline calls Report(int, int, string) periodically.
Declaration
public IProgressCallback ProgressCallback { get; set; }
Property Value
| Type | Description |
|---|---|
| IProgressCallback |