[]
Represents the view state of a PDF document.
The presentation of a PDF document may depend on the context that is determined by the current environment and is not persisted in the PDF itself. This includes:
public class ViewState
| Name | Description |
|---|---|
| ViewState(GcPdfDocument, bool) | Initializes a new instance of the ViewState class. |
| Name | Description |
|---|---|
| Doc | The GcPdfDocument for which this ViewState was created. |
| Name | Description |
|---|---|
| CurrentConfiguration | Gets the OptionalContentConfiguration specified in the last ApplyConfiguration(OptionalContentConfiguration) method call. |
| IgnoreLayersState | Gets or sets a value indicating whether all layers' state should be ignored and all layers should be considered visible. |
| Mode | Gets or sets the document view mode. |
| Zoom | Gets or sets the document zoom value (1 is actual size, no zoom). |
| Name | Description |
|---|---|
| ApplyConfiguration(OptionalContentConfiguration) | Applies the specified configuration to this view state. |
| GetLayerUIState(OptionalContentGroup) | Gets the visibility state of an optional content group (layer) in the context of an end-user UI The return value is interpreted as follows: |
| GetLayerUIState(string) | Gets the visibility state of an optional content group (layer) in the context of an end-user UI The return value is interpreted as follows: |
| IsLayerActive(object) | Checks whether a layer is active in the view mode specified by the Mode property. The target layer can be specified as an OptionalContentGroup, an OptionalContentMembership or a string representing the name of the layer. |
| IsLayerActive(object, ViewMode) | Checks whether a layer is active in a specified view mode. The target layer can be specified as an OptionalContentGroup, an OptionalContentMembership or a string representing the name of the layer. |
| IsLayerExportable(object) | Checks whether a layer is visible when the document is exported. The target layer can be specified as an OptionalContentGroup, an OptionalContentMembership or a string representing the name of the layer. |
| IsLayerPrintable(object) | Checks whether a layer is visible when the document is printed. The target layer can be specified as an OptionalContentGroup, an OptionalContentMembership or a string representing the name of the layer. |
| IsLayerVisible(object) | Checks whether a layer is visible when the document is viewed. The target layer can be specified as an OptionalContentGroup, an OptionalContentMembership or a string representing the name of the layer. |
| Reset() | Resets this ViewState to its initial state. |
| SetLayerUIState(OptionalContentGroup, bool?) | Sets the visibility of an optional content group (layer) in the context of an end-user UI.
The |
| SetLayerUIState(string, bool?) | Sets the visibility of an optional content group (layer) in the context of an end-user UI.
The |
| SetLayersUIState(bool?, params object[]) | Sets the visibility of one or more |
| SetLayersUIStateExcept(bool?, params object[]) | Sets the visibility of all layers except those listed in the |