TaskbarItemProgressState 枚举

定义

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

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

字段

Error 3

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

Indeterminate 1

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

None 0

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

Normal 2

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

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. 如果是 Normal、已暂停或错误, 则ProgressValue属性确定进度指示器的完整性。 TaskbarItemProgressStateIf the TaskbarItemProgressState is Normal, Paused, or Error, the ProgressValue property determines the completeness of the progress indicator. ProgressValue对于的其他值ProgressState, 将忽略。ProgressValue is ignored for other values of ProgressState.

适用于