Skip to content

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

NameTypeDescription
windowWindowWindow to manipulate.
taskBarProgressState[TaskBarProgressState](#Progress sate to set.
currentintCurrent 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

NameTypeDescription
windowWindow?Window to manipulate.
taskBarProgressState[TaskBarProgressState](#Progress sate to set.
currentintCurrent value to display.
totalintTotal 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

NameTypeDescription
hWndnintWindow handle.
taskBarProgressState[TaskBarProgressState](#Progress sate to set.
currentintCurrent 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

NameTypeDescription
hWndnintWindow handle.
taskBarProgressState[TaskBarProgressState](#Progress sate to set.
currentintCurrent value to display.
totalintTotal number for division.

Returns: bool -- A bool.

Exceptions

TypeCondition
System.ExceptionTaskbar functions not available.