cete.dynamicpdf.viewer.documentdisplayingeventargs
DocumentDisplayingEventArgs
- Namespace: ceTe.DynamicPDF.Viewer
- Assemblies: ceTe.DynamicPDF.Viewer.40.x64.dll, ceTe.DynamicPDF.Viewer.40.x86.dll
Provides data for the DocumentDisplaying event.
public class DocumentDisplayingEventArgs : EventArgs
Public Class DocumentDisplayingEventArgs
Inherits EventArgs
Inheritance: Object → EventArgs → DocumentDisplayingEventArgs
Licensing
This class is a DynamicPDF Viewer feature. The following license is required for non-evaluation usage:
- DynamicPDF Viewer for .NET
Examples
For example refer to DocumentDisplaying event.
Properties
Cancel
Gets or sets a value for cancelling the Pdf Document while displaying.
public bool Cancel { get; set; }
Public Property Cancel As Boolean
Property Value
Remarks
True will cancel the PDF document displaying and FileOpenFailed event will be raised.
Document
Gets the PdfDocument.
public PdfDocument Document { get; }
Public Property Document As PdfDocument
Property Value
Remarks
Gets the PDF document PdfViewer going to display.
FocusDocument
Gets or sets the value of FocusDocument property which decides focus should be given to this control or not after loading the document.
public bool FocusDocument { get; set; }
Public Property FocusDocument As Boolean
Property Value
Remarks
Default value is true.
InitialOrientation
Gets or sets the value of page orientation when displaying a document.
public Nullable<Orientation> InitialOrientation { get; set; }
Public Property InitialOrientation As Nullable(Of Orientation)
Property Value
InitialPage
Gets or sets the value of initial page when displaying a document.
public Nullable<int> InitialPage { get; set; }
Public Property InitialPage As Nullable(Of Integer)
Property Value
Remarks
The value will be accepted only if it is a positive number between 1 and total number of pages in the document.
InitialPageMode
Gets or sets the value of page mode when displaying a document.
public Nullable<PageDisplayMode> InitialPageMode { get; set; }
Public Property InitialPageMode As Nullable(Of PageDisplayMode)
Property Value
InitialVisibleNavigationPane
Gets or sets the value of navigation pane to be visible when displaying a document.
public Nullable<NavigationPane> InitialVisibleNavigationPane { get; set; }
Public Property InitialVisibleNavigationPane As Nullable(Of NavigationPane)
Property Value
InitialZoomMode
Gets or sets the value of page zoom mode when displaying a document.
public Nullable<Zoom> InitialZoomMode { get; set; }
Public Property InitialZoomMode As Nullable(Of Zoom)
Property Value
Remarks
If zoom percent mode is selected then the value of InitialZoomPercent has to be specified. Otherwise it will be .01f by default.
InitialZoomPercent
Gets or sets the value of page zoom percent when displaying a document.
public Nullable<float> InitialZoomPercent { get; set; }
Public Property InitialZoomPercent As Nullable(Of Single)
Property Value
Remarks
This value ranges from .01f to 64.0f.
Methods
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .