[]
        
(Showing Draft Content)

C1.Web.Mvc.Viewer.ViewerBase

ViewerBase Class

Defines an abstract class for the viewer controls.

Inheritance
ViewerBase
Implements
Namespace: C1.Web.Mvc.Viewer
Assembly: C1.Web.Mvc.FlexViewer.dll
Syntax
public abstract class ViewerBase : Control, IHtmlString, ITemplate

Constructors

Name Description
ViewerBase(HtmlHelper, string)

Creates one ViewerBase instance.

Properties

Name Description
FilePath

Gets or sets the document path.

FullScreen

Gets or sets whether viewer is under full screen mode.

MouseMode

Gets or sets a value indicating the mouse behavior.

OnClientBeforeSendRequest

Occurs before every request sent to the server.

OnClientFullScreenChanged

Occurs after the full screen mode is changed.

OnClientMouseModeChanged

Occurs after the mouse mode is changed.

OnClientPageIndexChanged

Occurs after the page index is changed.

OnClientQueryLoadingData

Queries the request data sent to the service before loading the document.

OnClientViewModeChanged

Occurs after the view mode is changed.

OnClientZoomFactorChanged

Occurs after the zoom factor is changed.

OnClientZoomModeChanged

Occurs after the zoom mode is changed.

RequestHeaders

Gets or sets an object containing request headers to be used when sending or requesting data. The most typical use for this property is in scenarios where authentication is required.

ServiceUrl

Gets or sets the service url. It works as "~/api/" when it is not set.

ThresholdWidth

Gets or sets the threshold to switch between mobile and PC template

ViewMode

Gets or sets the view mode.

ZoomFactor

Gets or sets the zoom factor.

ZoomMode

Gets or sets a value indicating the current zoom mode to show the document pages.