[]
Defines a builder to configurate ViewerBase.
public abstract class ViewerBaseBuilder<TControl, TBuilder> : ControlBuilder<TControl, TBuilder>, IHtmlString where TControl : ViewerBase where TBuilder : ViewerBaseBuilder<TControl, TBuilder>
Name | Description |
---|---|
TControl | |
TBuilder |
Name | Description |
---|---|
ViewerBaseBuilder(TControl) | Creates one ViewerBaseBuilder<TControl, TBuilder> instance to configurate |
Name | Description |
---|---|
FilePath(string) | Configurates FilePath. Sets the document path. |
FullScreen(bool) | Configurates FullScreen. Sets whether viewer is under full screen mode. |
MouseMode(MouseMode) | Configurates MouseMode. Sets a value indicating the mouse behavior. |
OnClientBeforeSendRequest(string) | Configurates the OnClientBeforeSendRequest client event. Occurs before every request sent to the server. |
OnClientFullScreenChanged(string) | Configurates the OnClientFullScreenChanged client event. Occurs after the full screen mode is changed. |
OnClientMouseModeChanged(string) | Configurates the OnClientMouseModeChanged client event. Occurs after the mouse mode is changed. |
OnClientPageIndexChanged(string) | Configurates the OnClientPageIndexChanged client event. Occurs after the page index is changed. |
OnClientQueryLoadingData(string) | Configurates the OnClientQueryLoadingData client event. Queries the request data sent to the service before loading the document. |
OnClientViewModeChanged(string) | Configurates the OnClientViewModeChanged client event. Occurs after the view mode is changed. |
OnClientZoomFactorChanged(string) | Configurates the OnClientZoomFactorChanged client event. Occurs after the zoom factor is changed. |
OnClientZoomModeChanged(string) | Configurates the OnClientZoomModeChanged client event. Occurs after the zoom mode is changed. |
RequestHeaders(IDictionary<string, object>) | Configurates RequestHeaders. 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(string) | Configurates ServiceUrl. Sets the service url. It works as "~/api/" when it is not set. |
ThresholdWidth(int) | Configurates ThresholdWidth. Sets the threshold to switch between mobile and PC template |
ViewMode(ViewMode) | Configurates ViewMode. Sets the view mode. |
ZoomFactor(double) | Configurates ZoomFactor. Sets the zoom factor. |
ZoomMode(ZoomMode) | Configurates ZoomMode. Sets a value indicating the current zoom mode to show the document pages. |