Skip to content

TaskBarService.SetValue(Window?, TaskBarProgressState, int, int) method

Defined in

Type: TaskBarService 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. public virtual bool SetValue(Window? window, TaskBarProgressState taskBarProgressState, int current, int total)
  • 2. public virtual bool SetValue(Window? window, int current, int total)
  • 3. public virtual bool SetValue(nint hWnd, TaskBarProgressState taskBarProgressState, int current, int total)
  • 4. public virtual bool SetValue(nint hWnd, int current, int max)

1. Overload

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

Inherited documentation

These docs were inherited from ITaskBarService. The member doesn't override them on this type.

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.

2. Overload

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

Inherited documentation

These docs were inherited from ITaskBarService. The member doesn't override them on this type.

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.

3. Overload

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

Inherited documentation

These docs were inherited from ITaskBarService. The member doesn't override them on this type.

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.

4. Overload

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

Inherited documentation

These docs were inherited from ITaskBarService. The member doesn't override them on this type.

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.