ComponentOne ProgressBar for ASP.NET AJAX: C1ProgressBar Elements > Label

Label

The progress bar's label is used to provide an alpha-numeric representation of progress. The label can display any one of these six formats:

 

Topic

Description

{0} or {ProgressValue}

Displays the current progress.

{1} or {PercentProgress

Displays the current percent progress.

{2} or {RemainingProgress}

Displays the progress needed to complete the task.

{3} or {PercentageRemaining}

Displays the percentage of the process remaining.

{4} or {Min}

Displays the value of the MinimumValue property.

{5} or {Max}

Displays the value of the MaximumValue property.

 

To set the label to one of these formats, set the LabelFormatString property. You can add any text you want around outside of the curly braces. For example, you can enter “{ProgressValue} percent finished” and that will show the percentage that is left to complete in the task.  You can also overwrite the entire ToolTip with a custom string.

The label element can be aligned in several different ways. If the C1ProgressBar is horizontal, it can be aligned to the left, right, or center, or it can run as a marquee that travels ahead of the progress bar; if the C1ProgressBar control is vertical, it can be aligned to the top, center, or bottom of the control, or it can be run as a marquee that travels ahead of the progress bar.


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.