Skip to content

ITaskBarService.SetValue(nint, TaskBarProgressState, int, int) method

Defined in

Type: ITaskBarService Namespace: CrissCross.WPF.UI 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. bool SetValue(nint hWnd, TaskBarProgressState taskBarProgressState, int current, int total)
  • 2. bool SetValue(nint hWnd, int current, int max)
  • 3. bool SetValue(Window? window, TaskBarProgressState taskBarProgressState, int current, int total)
  • 4. bool SetValue(Window? window, int current, int total)

1. Overload

bool SetValue(nint hWnd, TaskBarProgressState taskBarProgressState, int current, int total)

Summary: Sets taskbar value of the selected window handle.

Parameters

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

Returns: bool -- true if the operation succeeds. false otherwise.

2. Overload

bool SetValue(nint hWnd, int current, int max)

Summary: Sets taskbar value of the selected window handle.

Parameters

NameTypeDescription
hWndnintWindow handle to modify.
currentintCurrent value to display.
maxintMaximum number for division.

Returns: bool -- true if the operation succeeds. false otherwise.

3. Overload

bool SetValue(Window? window, TaskBarProgressState taskBarProgressState, int current, int total)

Summary: Sets taskbar value of the selected window.

Parameters

NameTypeDescription
windowWindow?Window to modify.
taskBarProgressState[TaskBarProgressState](#Progress sate to set.
currentintCurrent value to display.
totalintMaximum number for division.

Returns: bool -- true if the operation succeeds. false otherwise.

4. Overload

bool SetValue(Window? window, int current, int total)

Summary: Sets taskbar value of the selected window.

Parameters

NameTypeDescription
windowWindow?Window to modify.
currentintCurrent value to display.
totalintMaximum number for division.

Returns: bool -- true if the operation succeeds. false otherwise.