# ProgressBarExtensions

Namespace: **Wisej.Web.Markup**

Assembly: **Wisej.Framework** (4.0.0.0)

Provides fluent markup extension methods for configuring properties of the [ProgressBar](https://docs.wisej.com/api/wisej.web/content/wisej.web.progressbar) control.

{% tabs %}
{% tab title="C#" %}

```csharp
public class ProgressBarExtensions
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class ProgressBarExtensions
```

{% endtab %}
{% endtabs %}

## Methods

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) BarColor\<TProgressBar>(progressBar, color)

Sets the color of the progress bar using a [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color) structure.

| Parameter        | Type                                                                                                          | Description                   |
| ---------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| **TProgressBar** |                                                                                                               | The type of the progress bar. |
| **progressBar**  | [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions) | The progress bar to modify.   |
| **color**        | [Color](https://docs.microsoft.com/dotnet/api/system.drawing.color)                                           | The color to set.             |

**Returns:** [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions). The modified progress bar.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) BarColor\<TProgressBar>(progressBar, color)

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

| Parameter        | Type                                                                                                          | Description                   |
| ---------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| **TProgressBar** |                                                                                                               | The type of the progress bar. |
| **progressBar**  | [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions) | The progress bar to modify.   |
| **color**        | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                 | The name of the color.        |

**Returns:** [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions). The modified progress bar.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) BarColor\<TProgressBar>(progressBar, color)

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

| Parameter        | Type                                                                                                          | Description                   |
| ---------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| **TProgressBar** |                                                                                                               | The type of the progress bar. |
| **progressBar**  | [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions) | The progress bar to modify.   |
| **color**        | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                   | The ARGB value of the color.  |

**Returns:** [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions). The modified progress bar.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) BarColor\<TProgressBar>(progressBar, r, g, b)

Sets the color of the progress bar using RGB components.

| Parameter        | Type                                                                                                          | Description                   |
| ---------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| **TProgressBar** |                                                                                                               | The type of the progress bar. |
| **progressBar**  | [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions) | The progress bar to modify.   |
| **r**            | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                   | The red component.            |
| **g**            | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                   | The green component.          |
| **b**            | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                   | The blue component.           |

**Returns:** [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions). The modified progress bar.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) BorderStyle\<TProgressBar>(progressBar, borderStyle)

Sets the border style of the specified progress bar.

| Parameter        | Type                                                                                                          | Description                   |
| ---------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| **TProgressBar** |                                                                                                               | The type of the progress bar. |
| **progressBar**  | [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions) | The progress bar to modify.   |
| **borderStyle**  | [BorderStyle](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.borderstyle)                        | The border style to set.      |

**Returns:** [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions). The modified progress bar.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Maximum\<TProgressBar>(progressBar, value)

Sets the maximum value of the specified progress bar.

| Parameter        | Type                                                                                                          | Description                             |
| ---------------- | ------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| **TProgressBar** |                                                                                                               | The type of the progress bar.           |
| **progressBar**  | [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions) | The progress bar to modify.             |
| **value**        | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                   | The maximum value for the progress bar. |

**Returns:** [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions). The modified progress bar.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Minimum\<TProgressBar>(progressBar, value)

Sets the minimum value of the specified progress bar.

| Parameter        | Type                                                                                                          | Description                             |
| ---------------- | ------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| **TProgressBar** |                                                                                                               | The type of the progress bar.           |
| **progressBar**  | [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions) | The progress bar to modify.             |
| **value**        | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                   | The minimum value for the progress bar. |

**Returns:** [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions). The modified progress bar.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Step\<TProgressBar>(progressBar, value)

Sets the step increment value of the specified progress bar.

| Parameter        | Type                                                                                                          | Description                   |
| ---------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| **TProgressBar** |                                                                                                               | The type of the progress bar. |
| **progressBar**  | [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions) | The progress bar to modify.   |
| **value**        | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                   | The step increment value.     |

**Returns:** [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions). The modified progress bar.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Value\<TProgressBar>(progressBar, value)

Sets the current value of the specified progress bar.

| Parameter        | Type                                                                                                          | Description                         |
| ---------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
| **TProgressBar** |                                                                                                               | The type of the progress bar.       |
| **progressBar**  | [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions) | The progress bar to modify.         |
| **value**        | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                   | The new value for the progress bar. |

**Returns:** [TProgressBar](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.progressbarextensions). The modified progress bar.
