Skip to main content
Version: 4.1

ProgressBarExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.1.0.0)

Provides fluent markup extension methods for configuring properties of the ProgressBar control.

public class ProgressBarExtensions

Methods

Static member BarColor<TProgressBar>(progressBar, color)

Sets the color of the progress bar using a Color structure.

ParameterTypeDescription
TProgressBarThe type of the progress bar.
progressBarTProgressBarThe progress bar to modify.
colorColorThe color to set.

Returns: TProgressBar. The modified progress bar.

Static member BarColor<TProgressBar>(progressBar, color)

Sets the color of the progress bar using a color name.

ParameterTypeDescription
TProgressBarThe type of the progress bar.
progressBarTProgressBarThe progress bar to modify.
colorStringThe name of the color.

Returns: TProgressBar. The modified progress bar.

Static member BarColor<TProgressBar>(progressBar, color)

Sets the color of the progress bar using an ARGB integer.

ParameterTypeDescription
TProgressBarThe type of the progress bar.
progressBarTProgressBarThe progress bar to modify.
colorInt32The ARGB value of the color.

Returns: TProgressBar. The modified progress bar.

Static member BarColor<TProgressBar>(progressBar, r, g, b)

Sets the color of the progress bar using RGB components.

ParameterTypeDescription
TProgressBarThe type of the progress bar.
progressBarTProgressBarThe progress bar to modify.
rInt32The red component.
gInt32The green component.
bInt32The blue component.

Returns: TProgressBar. The modified progress bar.

Static member BorderStyle<TProgressBar>(progressBar, borderStyle)

Sets the border style of the specified progress bar.

ParameterTypeDescription
TProgressBarThe type of the progress bar.
progressBarTProgressBarThe progress bar to modify.
borderStyleBorderStyleThe border style to set.

Returns: TProgressBar. The modified progress bar.

Static member Maximum<TProgressBar>(progressBar, value)

Sets the maximum value of the specified progress bar.

ParameterTypeDescription
TProgressBarThe type of the progress bar.
progressBarTProgressBarThe progress bar to modify.
valueInt32The maximum value for the progress bar.

Returns: TProgressBar. The modified progress bar.

Static member Minimum<TProgressBar>(progressBar, value)

Sets the minimum value of the specified progress bar.

ParameterTypeDescription
TProgressBarThe type of the progress bar.
progressBarTProgressBarThe progress bar to modify.
valueInt32The minimum value for the progress bar.

Returns: TProgressBar. The modified progress bar.

Static member Step<TProgressBar>(progressBar, value)

Sets the step increment value of the specified progress bar.

ParameterTypeDescription
TProgressBarThe type of the progress bar.
progressBarTProgressBarThe progress bar to modify.
valueInt32The step increment value.

Returns: TProgressBar. The modified progress bar.

Static member Value<TProgressBar>(progressBar, value)

Sets the current value of the specified progress bar.

ParameterTypeDescription
TProgressBarThe type of the progress bar.
progressBarTProgressBarThe progress bar to modify.
valueInt32The new value for the progress bar.

Returns: TProgressBar. The modified progress bar.