View
Contents
 [
        
            Hide
        ]
    View(ViewOptions)
Creates view of all document pages.
public void View(ViewOptions options)
| Parameter | Type | Description | 
|---|---|---|
| options | ViewOptions | The view options. | 
Exceptions
| 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. | 
Remarks
Learn more
- More about different viewing options following this guide: How to customize document viewing output using GroupDocs.Viewer
 
See Also
- class ViewOptions
 - class Viewer
 - namespace GroupDocs.Viewer
 - assembly GroupDocs.Viewer
 
View(ViewOptions, CancellationToken)
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. | 
Exceptions
| 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. | 
Remarks
Learn more
- More about different viewing options following this guide: How to customize document viewing output using GroupDocs.Viewer
 
See Also
- class ViewOptions
 - class Viewer
 - namespace GroupDocs.Viewer
 - assembly GroupDocs.Viewer
 
View(ViewOptions, params int[])
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. | 
Exceptions
| 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. | 
Remarks
Learn more
- More about different viewing options following this guide: How to customize document viewing output using GroupDocs.Viewer
 
See Also
- class ViewOptions
 - class Viewer
 - namespace GroupDocs.Viewer
 - assembly GroupDocs.Viewer
 
View(ViewOptions, CancellationToken, params int[])
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. | 
Exceptions
| 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. | 
Remarks
Learn more
- More about different viewing options following this guide: How to customize document viewing output using GroupDocs.Viewer
 
See Also
- class ViewOptions
 - class Viewer
 - namespace GroupDocs.Viewer
 - assembly GroupDocs.Viewer