View
Leave feedback
On this page
Creates view of all document pages.
public void View(ViewOptions options)
| Parameter | Type | Description |
|---|---|---|
| options | ViewOptions | The view options. |
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when options is null. |
| PasswordRequiredException | Thrown when password is required to open the document. |
| IncorrectPasswordException | Thrown when password that was specified is incorrect. |
| GroupDocsViewerException | Thrown when attachment could not be found. |
Learn more
- More about different viewing options following this guide: How to customize document viewing output using GroupDocs.Viewer
- class ViewOptions
- class Viewer
- namespace GroupDocs.Viewer
- assembly GroupDocs.Viewer
Creates view of all document pages.
public void View(ViewOptions options, CancellationToken cancellationToken)
| Parameter | Type | Description |
|---|---|---|
| options | ViewOptions | The view options. |
| cancellationToken | CancellationToken | Cancellation token to send a request to cancel current view process. |
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when options is null. |
| PasswordRequiredException | Thrown when password is required to open the document. |
| IncorrectPasswordException | Thrown when password that was specified is incorrect. |
| GroupDocsViewerException | Thrown when attachment could not be found. |
Learn more
- More about different viewing options following this guide: How to customize document viewing output using GroupDocs.Viewer
- class ViewOptions
- class Viewer
- namespace GroupDocs.Viewer
- assembly GroupDocs.Viewer
Creates view of specific document pages.
public void View(ViewOptions options, params int[] pageNumbers)
| Parameter | Type | Description |
|---|---|---|
| options | ViewOptions | The view options. |
| pageNumbers | Int32[] | The page numbers to view. |
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when options is null. |
| ArgumentNullException | Thrown when pageNumbers is null. |
| ArgumentException | Thrown when pageNumbers is empty. |
| PasswordRequiredException | Thrown when password is required to open the document. |
| IncorrectPasswordException | Thrown when password that was specified is incorrect. |
| GroupDocsViewerException | Thrown when attachment could not be found. |
Learn more
- More about different viewing options following this guide: How to customize document viewing output using GroupDocs.Viewer
- class ViewOptions
- class Viewer
- namespace GroupDocs.Viewer
- assembly GroupDocs.Viewer
Creates view of specific document pages.
public void View(ViewOptions options, CancellationToken cancellationToken, params int[] pageNumbers)
| Parameter | Type | Description |
|---|---|---|
| options | ViewOptions | The view options. |
| pageNumbers | CancellationToken | The page numbers to view. |
| cancellationToken | Int32[] | Cancellation token to cancel processing. |
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when options is null. |
| ArgumentNullException | Thrown when pageNumbers is null. |
| ArgumentException | Thrown when pageNumbers is empty. |
| PasswordRequiredException | Thrown when password is required to open the document. |
| IncorrectPasswordException | Thrown when password that was specified is incorrect. |
| GroupDocsViewerException | Thrown when attachment could not be found. |
Learn more
- More about different viewing options following this guide: How to customize document viewing output using GroupDocs.Viewer
- class ViewOptions
- class Viewer
- namespace GroupDocs.Viewer
- assembly GroupDocs.Viewer
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.