PreviewOptions
PreviewOptions class
Represents document preview options.
public class PreviewOptions : PageOptions, IPreviewOptions
Constructors
| Name |
Description |
| PreviewOptions(CreatePageStream, PreviewMode) |
Initializes a new instance of the PreviewOptions class. |
| PreviewOptions(CreatePageStream, PreviewMode, int[]) |
Initializes a new instance of the PreviewOptions class. |
| PreviewOptions(CreatePageStream, ReleasePageStream, PreviewMode) |
Initializes a new instance of the PreviewOptions class. |
| PreviewOptions(CreatePageStream, PreviewMode, int, int) |
Initializes a new instance of the PreviewOptions class. |
| PreviewOptions(CreatePageStream, ReleasePageStream, PreviewMode, int[]) |
Initializes a new instance of the PreviewOptions class. |
| PreviewOptions(CreatePageStream, PreviewMode, int, int, RangeMode) |
Initializes a new instance of the PreviewOptions class. |
| PreviewOptions(CreatePageStream, ReleasePageStream, PreviewMode, int, int) |
Initializes a new instance of the PreviewOptions class. |
| PreviewOptions(CreatePageStream, ReleasePageStream, PreviewMode, int, int, RangeMode) |
Initializes a new instance of the PreviewOptions class. |
Properties
| Name |
Description |
| CreateStream { get; } |
Delegate that defines method to create output page preview stream. |
| Height { get; set; } |
Preview height. |
| Mode { get; } |
Mode for preview. |
| Pages { get; } |
Get page numbers collection. |
| ReleaseStream { get; } |
Delegate that defines method to release output page preview stream. |
| Resolution { get; set; } |
Image resolution. |
| Width { get; set; } |
Preview width. |
Methods
| Name |
Description |
| GetPathByPageNumber(int, string) |
Gets the full file path of previewed document by page number with defined extension. |
| Validate(FileType) |
Validates the preview options. |
See Also