ProgressBarStyle 枚举

定义

指定 ProgressBar 用于指示操作进度的样式。Specifies the style that a ProgressBar uses to indicate the progress of an operation.

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

字段

Blocks 0

通过在 ProgressBar 中增加分段块的数量来指示进度。Indicates progress by increasing the number of segmented blocks in a ProgressBar.

Continuous 1

通过在 ProgressBar 中增加平滑连续的栏的大小来指示进度。Indicates progress by increasing the size of a smooth, continuous bar in a ProgressBar.

Marquee 2

通过以字幕方式在 ProgressBar 中连续滚动一个块来指示进度。Indicates progress by continuously scrolling a block across a ProgressBar in a marquee fashion.

注解

当您需要指示进度时, 可以使用字幕样式, 但不能指明进度量。You can use the marquee style when you need to indicate progress is being made, but you cannot indicate the quantity of progress. 仅当启用视觉样式时, 字幕样式才有效。The Marquee style is valid only when visual styles are enabled. 仅当未启用视觉样式时, 此连续样式才有效。The Continuous style is valid only when visual styles are not enabled.

适用于

另请参阅