xtrareports-devexpress-dot-aspnetcore-dot-reporting-dot-webdocumentviewer-dot-webdocumentviewerbuilder-dot-progressbarsettings-x28-action-progressbarsettings-x29.md
Provides access to the Web Document Viewer‘s progress bar settings.
Namespace : DevExpress.AspNetCore.Reporting.WebDocumentViewer
Assembly : DevExpress.AspNetCore.Reporting.v25.2.dll
NuGet Package : DevExpress.AspNetCore.Reporting
public WebDocumentViewerBuilder ProgressBarSettings(
Action<ProgressBarSettings> configure
)
Public Function ProgressBarSettings(
configure As Action(Of ProgressBarSettings)
) As WebDocumentViewerBuilder
| Name | Type | Description |
|---|---|---|
| configure | Action<ProgressBarSettings> |
A delegate method that includes progress bar settings.
|
| Type | Description |
|---|---|
| WebDocumentViewerBuilder |
A WebDocumentViewerBuilder that can be used to further configure the Document Viewer.
|
The ProgressBarSettings property allows you to set the Web Document Viewer‘s progress bar position and behavior.
This property provides access to the following properties:
The code sample below illustrates how to change the progress bar’s position and reaction to web page scroll events in ASP.NET Core applications.
@(Html
.DevExpress()
.WebDocumentViewer("DocumentViewer")
.Height("1000px")
.ProgressBarSettings(settings => {
// Place the progress bar in the Document Viewer's bottom left corner.
settings.Position = DevExpress.XtraReports.Web.WebDocumentViewer.ProgressBarPosition.BottomLeft;
// Make the progress bar stay within the visible area when users scroll a web page that contains the Document Viewer.
settings.KeepOnVisibleArea = false;
})
.Bind(Model.Report))
See Also
WebDocumentViewerBuilder Class