Skip to main content
Tab

ProgressBarProperties.DisplayMode Property

Gets or sets the display mode of the current position within the progress bar.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(ProgressBarDisplayMode.Percentage)]
public ProgressBarDisplayMode DisplayMode { get; set; }

Property Value

Type Default Description
ProgressBarDisplayMode Percentage

One of the ProgressBarDisplayMode enumeration values.

Available values:

Name Description
Percentage

A percentage value representing the ratio of the ASPxProgressBar.Position property’s value with respect to the values of the ASPxProgressBar.Minimum and ASPxProgressBar.Maximum properties is displayed within the progress bar.

Position

The ASPxProgressBar.Position property’s value is displayed.

Custom

The progress bar displays a custom text, which is formatted using a pattern specified via the ASPxProgressBar.CustomDisplayFormat (ASPxProgressBarBase.CustomDisplayFormat) property.

Remarks

Use the DisplayMode property to control how the control’s value should be represented within the progress bar - as either the ASPxProgressBar.Position property value or a percentage value representing the ratio of the ASPxProgressBar.Position property’s value with respect to the values of the ASPxProgressBar.Minimum and ASPxProgressBar.Maximum properties.

This property is in effect if the ASPxProgressBar.ShowPosition property is set to true.

Note

The DisplayMode property synchronizes its value with the editor’s ASPxProgressBar.DisplayMode property.

See Also