[]
Encapsulates file-related operations available in preview.
public class C1PreviewFileActions
| Name | Description |
|---|---|
| C1PreviewFileActions() | Initializes a new instance of the C1PreviewFileActions class. |
| C1PreviewFileActions(object, ExportOptions) | Initializes a new instance of the C1PreviewFileActions class. |
| Name | Description |
|---|---|
| CanSaveFile | Gets a value indicating whether the current document can be saved. |
| Document | Gets or sets the current document. |
| ExportOptions | Gets or sets export options. |
| Name | Description |
|---|---|
| FileOpen() | Shows the "open file" dialog allowing the user to select a document to open, and then opens it. |
| FileOpen(string) | Loads the document from a specified file. If the file does not exist uses its directory as the initial directory for the "open file" dialog. |
| FileOpen(string, bool) | Loads the document from a specified file. If the file does not exist uses its directory as the initial directory for the "open file" dialog. |
| FileSave() | Saves (exports) the current document in the specified file. The user can select a file name in a "save file" dialog. The save/export format is determined by the file extension. |
| FileSave(string, ExportProvider) | Saves (exports) the current document in the specified file.
If |
| FileSave(string, ExportProvider, bool) | Saves (exports) the current document in the specified file.
If |
| Name | Description |
|---|---|
| LongOperation | Occurs periodically during long operations (e.g. saving to disk). Allows to provide progress indication and the ability to cancel generation to the user. |