Back to Devexpress

WebDocumentViewerBuilder.MobileMode(Boolean) Method

xtrareports-devexpress-dot-aspnetcore-dot-reporting-dot-webdocumentviewer-dot-webdocumentviewerbuilder-dot-mobilemode-x28-system-dot-boolean-x29.md

latest2.4 KB
Original Source

WebDocumentViewerBuilder.MobileMode(Boolean) Method

Sets whether or not the Web Document Viewer should be configured for use on mobile devices.

Namespace : DevExpress.AspNetCore.Reporting.WebDocumentViewer

Assembly : DevExpress.AspNetCore.Reporting.v25.2.dll

NuGet Package : DevExpress.AspNetCore.Reporting

Declaration

csharp
public WebDocumentViewerBuilder MobileMode(
    bool mobileMode
)
vb
Public Function MobileMode(
    mobileMode As Boolean
) As WebDocumentViewerBuilder

Parameters

NameTypeDescription
mobileModeBoolean

Indicates whether to configure the Web Document Viewer for mobile devices.

|

Returns

TypeDescription
WebDocumentViewerBuilder

A WebDocumentViewerBuilder that can be used to further configure the Document Viewer.

|

Remarks

By default, MobileMode is set to false.

When setting MobileMode to true, you can also specify settings for the mobile Document Viewer version. For this purpose, use the Document Viewer Builder’s MobileSettings(Action<MobileViewerSettings>) method.

See Also

WebDocumentViewerBuilder Class

WebDocumentViewerBuilder Members

DevExpress.AspNetCore.Reporting.WebDocumentViewer Namespace