Class SharpTaskbarProgress
Exposes methods that control the progress indicator of the taskbar.
Inherited Members
Namespace: SharpDialogs
Assembly: SharpDialogs.dll
Syntax
public static class SharpTaskbarProgress
Methods
| Edit this page View SourceGetConsoleWindow()
Returns the console window.
Declaration
public static nint GetConsoleWindow()
Returns
| Type | Description |
|---|---|
| nint | The window handle. |
SetState(nint, SharpTaskbarStates)
Sets the type and state of the progress indicator displayed on a taskbar button.
Declaration
public static void SetState(nint hwnd, SharpTaskbarStates state)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | hwnd | The handle of the window in which the progress of an operation is being shown. This window's associated taskbar button will display the progress bar. |
| SharpTaskbarStates | state | Control the current state of the progress button. |
SetValue(nint, ulong, ulong)
Displays or updates a progress bar hosted in a taskbar button to show the specific percentage completed of the full operation.
Declaration
public static void SetValue(nint hwnd, ulong progress, ulong max)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | hwnd | The handle of the window whose associated taskbar button is being used as a progress indicator. |
| ulong | progress | A value that indicates the proportion of the operation that has been completed at the time the method is called. |
| ulong | max | A value that specifies the value ullCompleted will have when the operation is complete. |