TaskbarItemProgressState TaskbarItemProgressState TaskbarItemProgressState TaskbarItemProgressState Enum

定义

指定 Windows 任务栏中进度指示器的状态。Specifies the state of the progress indicator in the Windows taskbar.

public enum class TaskbarItemProgressState
public enum TaskbarItemProgressState
type TaskbarItemProgressState = 
Public Enum TaskbarItemProgressState
继承
TaskbarItemProgressStateTaskbarItemProgressStateTaskbarItemProgressStateTaskbarItemProgressState

字段

Error Error Error Error 3

任务栏按钮中显示红色的进度指示器。A red progress indicator is displayed in the taskbar button.

Indeterminate Indeterminate Indeterminate Indeterminate 1

任务栏按钮中显示闪烁的绿色进度指示器。A pulsing green indicator is displayed in the taskbar button.

None None None None 0

任务栏按钮中未显示进度指示器。No progress indicator is displayed in the taskbar button.

Normal Normal Normal Normal 2

任务栏按钮中显示绿色的进度指示器。A green progress indicator is displayed in the taskbar button.

Paused Paused Paused Paused 4

任务栏按钮中显示黄色的进度指示器。A yellow progress indicator is displayed in the taskbar button.

注解

可以通过显示进度指示器中的传达的长时间运行的任务进度Windows 7Windows 7任务栏。You can communicate the progress of long-running tasks by displaying a progress indicator in the Windows 7Windows 7 taskbar. 指示器的颜色由ProgressState属性,其中包含的一个TaskbarItemProgressState枚举值。The color of the indicator is determined by the ProgressState property, which contains one of the TaskbarItemProgressState enumeration values. 如果TaskbarItemProgressState正常、 已暂停,或错误,ProgressValue属性确定的进度指示器的完整性。If the TaskbarItemProgressState is Normal, Paused, or Error, the ProgressValue property determines the completeness of the progress indicator. ProgressValue 忽略的其他值ProgressStateProgressValue is ignored for other values of ProgressState.

适用于