public interface ViewInfo
The ViewInfo interface defines the contract for accessing and manipulating view information for a generic document in the GroupDocs.Viewer component. It provides methods to retrieve information such as the file type, pages, and other properties.
Example usage:
try (Viewer viewer = new Viewer("document.mpp")) {
final ViewInfo viewInfo = viewer.getViewInfo(ViewInfoOptions.forPngView());
if (viewInfo instanceof ProjectManagementViewInfo) {
ProjectManagementViewInfo projectManagementViewInfo = (ProjectManagementViewInfo) viewInfo;
// Use the projectManagementViewInfo object for further operations
}
// ...
}
Note: The default implementation of this interface is ViewInfoImpl.
Viewer| Modifier and Type | Method and Description |
|---|---|
FileType |
getFileType()
Retrieves the type of the file.
|
List<Page> |
getPages()
Retrieves the list of pages to view.
|
void |
setFileType(FileType fileType)
Sets the file type.
|
void |
setPages(List<Page> pages)
Sets the list of pages.
|
FileType getFileType()
Retrieves the type of the file.
FileTypeList<Page> getPages()
Retrieves the list of pages to view.
Pagevoid setFileType(FileType fileType)
fileType - The file type to set.Copyright © 2025. All rights reserved.