BaseViewer Members

The BaseViewer type exposes the following members.

Methods

Name Description
Public method abort

Cancels all remote methods.

Public method addCssClass

Public method beginUpdate
Public method controlToWorkspacePoint

Translates coordinates from the control-related coordinate system to the workspace-related one.

Public method controlToWorkspaceRectangle

Translates rectangle coordinates from the control-related coordinate system to the workspace-related one.

Public method delayedRefresh

Indicates that the control needs to be refreshed. The actual refreshing is applied when the user does not update the control state (such as scroll position, zoom value) in one second.

Public method dispose

Releases all resources.

Public method endUpdate
Public method ignoreDocumentClickOnce
Public method invokeRemoteMethod

Runs the specified remote method on the server.

Public method notifySizeChanged
Public method onBubbleEvent

Public method pageToControlPoint

Translates coordinates from the page-related coordinate system to the control-related one.

Public method pageToWorkspacePoint

Translates coordinates from the page-related coordinate system to the workspace-related one.

Public method raiseBubbleEvent

Public method raisePropertyChanged

Public method refresh

Refreshes the control immediately.

Public method removeCssClass

Public method toggleCssClass

Public method updated
Public method workspaceToContentPoint
Public method workspaceToControlPoint

Translates coordinates from the workspace-related coordinate system to the control-related one.

Public method workspaceToControlRectangle

Translates rectangle coordinates from the workspace-related coordinate system to the control-related one.

Properties

Name Description
Public property autoPostBack

Gets/sets a value indicating whether a postback to the server automatically occurs when the user zooms or scrolls the content.

Public property bestFitWhiteSpacePc

Gets or sets white space between content maximal demention and canvas

Public property borderWidth

Gets the width (in pixels) of the control border.

Public property clientSideOptions

Gets values which configure automatic postback for individual events.

Public property contentHeight

Gets a value that represents the height of the control's content taking into account its vertical resolution and zoom value.

Public property contentWidth

Gets a value that represents the width of the control's content taking into account its horizontal resolution and zoom value.

Public property delayedRefreshTimeout

Amount of milliseconds to wait before delayed refresh will be invoked.

Public property element
Public property events
Public property exceptionDescription

When a remote scripting method fails, this method returns the exception description.

Public property height

Gets the height (in pixels) of the control area.

Public property id
Public property isInitialized
Public property isUpdating
Public property maxZoom

Gets the maximum allowed zoom value.

Public property minZoom

Gets the minimum allowed zoom value.

Public property navigator

Gets/sets the navigator control ID (i.e. value stored in the attribute id of the tag that inserts the control).

Public property parent
Public property pinchZoomEnabled
Public property returnValue

When a remote scripting method is completed, this method returns its return value.

Public property role
Public property rubberband

Gets/sets the rubberband control ID (i.e. value stored in the attribute id of the tag that inserts the control).

Public property rulerEnabled

Gets or sets a value indicating whether to show the ruler.

Public property rulerOffsetX

Gets or sets the ruler offset on x-axis.

Public property rulerOffsetY

Gets or sets the ruler offset on y-axis.

Public property rulerScale

Gets or sets the ruler scale.

Public property rulerWidth

Gets or sets the ruler width.

Public property screenXDpi

Gets a value representing horizontal resolution in DPI used to show content in the browser.

Public property screenYDpi

Gets a value representing vertical resolution in DPI used to show content in the browser.

Public property scrollBarsStyle

Gets a value that specifies whether to display scroll bars and whether to hide them automatically when the displayed content is less than the control size.

Public property scrollBarWidth

Gets a value that represents a scroll bar width (in pixels) in calculations.

Public property scrollingPosition

Gets/sets the position of the scroll bars.

Public property scrollingSize

Gets a scroll bar length (in other words, the right-bottom point of the image fragment which is out of the visible area).

Public property status

Gets a current Viewer status.

Public property viewportAlignment

Gets/sets a value that specifies content alignment in the control.

Public property visibilityMode
Public property visible
Public property width

Gets the width (in pixels) of the control area.

Public property zoom

Gets/sets the current zoom value.

Public property zoomMode

Gets/sets a value that specifies content zoom mode of the control (automatic or manual).

Public property zoomQuality

Gets a value that specifies a zoom quality.

Events

Name Description
Public event click

Fires when the control is clicked.

Public event disposing

Public event invokingCallbackRequest

Occurs before the callback is initiated by this control.

Public event mouseDown

Fires when the user clicks the control with either mouse button.

Public event mouseMove

Fires when the user moves the mouse over the control.

Public event mouseUp

Fires when the user releases a mouse button while the mouse is over the control.

Public event pinchStart

Fires when the content is start zooming by pinch gesture.

Public event pinchStop

Fires when the content zooming by pinch gesture.

Public event propertyChanged

Public event scrolled

Fires when scroll position of the control is changed.

Public event statusChanged

Fires when status (see status property) is updated.

Public event workspaceChanged

Occurs when the content of the associated workspace is replaced.

Public event workspaceClick

Fires when the content displayed in the control is clicked.

Public event workspaceDoubleClick

Occurs when a mouse button is double clicked in the content displayed by this viewer control.

Public event workspaceMouseDown

Occurs when a mouse button is clicked in the content displayed by this viewer control.

Public event workspaceMouseMove

Fires when the user moves the mouse over the content of control.

Public event workspaceMouseUp

Fires when the user releases a mouse button while the mouse is over the content of control.

Public event zoomed

Fires when the content is zoomed in the control.

See Also

Reference