TaskBarProgress.SetValue(Window, TaskBarProgressState, int) method¶
Defined in
Type: TaskBarProgress
Namespace: CrissCross.WPF.UI.TaskBar
Assembly: CrissCross.WPF.UI.dll
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Overloads¶
- 1.
public static bool SetValue(Window window, TaskBarProgressState taskBarProgressState, int current) - 2.
public static bool SetValue(Window? window, TaskBarProgressState taskBarProgressState, int current, int total) - 3.
public static bool SetValue(nint hWnd, TaskBarProgressState taskBarProgressState, int current) - 4.
public static bool SetValue(nint hWnd, TaskBarProgressState taskBarProgressState, int current, int total)
1. Overload¶
public static bool SetValue(Window window, TaskBarProgressState taskBarProgressState, int current)
Summary: Allows to change the fill of the task bar.
Parameters
| Name | Type | Description |
|---|---|---|
window | Window | Window to manipulate. |
taskBarProgressState | [TaskBarProgressState](# | Progress sate to set. |
current | int | Current value to display. |
Returns: bool -- A bool.
2. Overload¶
public static bool SetValue(Window? window, TaskBarProgressState taskBarProgressState, int current, int total)
Summary: Allows to change the fill of the task bar.
Parameters
| Name | Type | Description |
|---|---|---|
window | Window? | Window to manipulate. |
taskBarProgressState | [TaskBarProgressState](# | Progress sate to set. |
current | int | Current value to display. |
total | int | Total number for division. |
Returns: bool -- A bool.
3. Overload¶
public static bool SetValue(nint hWnd, TaskBarProgressState taskBarProgressState, int current)
Summary: Allows to change the fill of the task bar.
Parameters
| Name | Type | Description |
|---|---|---|
hWnd | nint | Window handle. |
taskBarProgressState | [TaskBarProgressState](# | Progress sate to set. |
current | int | Current value to display. |
Returns: bool -- A bool.
4. Overload¶
public static bool SetValue(nint hWnd, TaskBarProgressState taskBarProgressState, int current, int total)
Summary: Allows to change the fill of the task bar.
Parameters
| Name | Type | Description |
|---|---|---|
hWnd | nint | Window handle. |
taskBarProgressState | [TaskBarProgressState](# | Progress sate to set. |
current | int | Current value to display. |
total | int | Total number for division. |
Returns: bool -- A bool.
Exceptions
| Type | Condition |
|---|---|
| System.Exception | Taskbar functions not available. |