Skip to main content

DocumentDisplayingEventArgs

Version: 2.0

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​

Boolean

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​

PdfDocument

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​

Boolean

Remarks​

Default value is true.

InitialOrientation​

Gets or sets the value of page orientation when displaying a document.

public Nullable&ltOrientation> InitialOrientation { get; set; }
Public Property InitialOrientation As Nullable(Of Orientation)

Property Value​

Nullable&ltOrientation>

InitialPage​

Gets or sets the value of initial page when displaying a document.

public Nullable&ltint> InitialPage { get; set; }
Public Property InitialPage As Nullable(Of Integer)

Property Value​

Nullable&ltint>

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&ltPageDisplayMode> InitialPageMode { get; set; }
Public Property InitialPageMode As Nullable(Of PageDisplayMode)

Property Value​

Nullable&ltPageDisplayMode>

InitialVisibleNavigationPane​

Gets or sets the value of navigation pane to be visible when displaying a document.

public Nullable&ltNavigationPane> InitialVisibleNavigationPane { get; set; }
Public Property InitialVisibleNavigationPane As Nullable(Of NavigationPane)

Property Value​

Nullable&ltNavigationPane>

InitialZoomMode​

Gets or sets the value of page zoom mode when displaying a document.

public Nullable&ltZoom> InitialZoomMode { get; set; }
Public Property InitialZoomMode As Nullable(Of Zoom)

Property Value​

Nullable&ltZoom>

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&ltfloat> InitialZoomPercent { get; set; }
Public Property InitialZoomPercent As Nullable(Of Single)

Property Value​

Nullable&ltfloat>

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​

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 .

See Also​

ceTe.DynamicPDF.Viewer