Interface ITaskBarService
Represents a contract with a service that provides methods for manipulating the taskbar.
public interface ITaskBarService
Methods
GetState(IntPtr)
Gets taskbar state of the selected window handle.
TaskBarProgressState GetState(IntPtr hWnd)
Parameters
hWndIntPtrWindow handle.
Returns
- TaskBarProgressState
The current state of system TaskBar.
GetState(Window?)
Gets taskbar state of the selected window.
TaskBarProgressState GetState(Window? window)
Parameters
windowWindowSelected window.
Returns
- TaskBarProgressState
The current state of system TaskBar.
SetState(IntPtr, TaskBarProgressState)
Sets taskbar state of the selected window handle.
bool SetState(IntPtr hWnd, TaskBarProgressState taskBarProgressState)
Parameters
hWndIntPtrWindow handle to modify.
taskBarProgressStateTaskBarProgressStateProgress sate to set.
Returns
SetState(Window?, TaskBarProgressState)
Sets taskbar state of the selected window.
bool SetState(Window? window, TaskBarProgressState taskBarProgressState)
Parameters
windowWindowWindow to modify.
taskBarProgressStateTaskBarProgressStateProgress sate to set.
Returns
SetValue(IntPtr, int, int)
Sets taskbar value of the selected window handle.
bool SetValue(IntPtr hWnd, int current, int max)
Parameters
hWndIntPtrWindow handle to modify.
currentintCurrent value to display.
maxintMaximum number for division.
Returns
SetValue(IntPtr, TaskBarProgressState, int, int)
Sets taskbar value of the selected window handle.
bool SetValue(IntPtr hWnd, TaskBarProgressState taskBarProgressState, int current, int total)
Parameters
hWndIntPtrWindow handle to modify.
taskBarProgressStateTaskBarProgressStateProgress sate to set.
currentintCurrent value to display.
totalintMaximum number for division.
Returns
SetValue(Window?, int, int)
Sets taskbar value of the selected window.
bool SetValue(Window? window, int current, int total)
Parameters
windowWindowWindow to modify.
currentintCurrent value to display.
totalintMaximum number for division.
Returns
SetValue(Window?, TaskBarProgressState, int, int)
Sets taskbar value of the selected window.
bool SetValue(Window? window, TaskBarProgressState taskBarProgressState, int current, int total)
Parameters
windowWindowWindow to modify.
taskBarProgressStateTaskBarProgressStateProgress sate to set.
currentintCurrent value to display.
totalintMaximum number for division.