ProgressBarSettings.Position Property
Gets or sets the progress bar’s position within the Document Viewer‘s visible area.
Namespace: DevExpress.XtraReports.Web.WebDocumentViewer.DataContracts
Assembly: DevExpress.Data.v24.2.dll
NuGet Package: DevExpress.Data
#Declaration
public ProgressBarPosition Position { get; set; }
#Property Value
Type | Description |
---|---|
Progress |
The progress bar’s position. |
Available values:
Name | Description |
---|---|
Default | The progress bar is positioned in the Document Viewer’s bottom left corner for left-to-right text direction, or in the bottom right corner for right-to-left text direction. |
Bottom |
The progress bar is positioned in the Document Viewer’s bottom left corner. |
Top |
The progress bar is positioned in the Document Viewer’s top left corner. |
Top |
The progress bar is positioned in the Document Viewer’s top right corner. |
Bottom |
The progress bar is positioned in the Document Viewer’s bottom right corner. |
#Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to Position |
---|---|---|
Cross-Platform Class Library | Report |
|
Web |
|
|
.NET Reporting Tools | Dx |
|
#Remarks
Use the WebDocumentViewerBuilder.ProgressBarSettings property to access the ProgressBarSettings object and its members.
#Examples
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))