public ColorThemeEnum ColorTheme { get; set; }Public Property ColorTheme As ColorThemeEnum
Get
SetProgressBar provides multiple color theme which the developer can use to customize its look.
The client area of ProgressBar consists of two rectangles. One that represents the empty control - the background of the ProgressBar and one that represents the bar itself. Both of these rectangles are vertically gradient-filled. Both gradient fills contain two color transitions. The first transition starts at the top of ProgressBar and ends in the middle. The second transition starts in the middle where the first ended and continues to the bottom of the control.
These colors together with BorderColor, when properly chosen, give ProgressBar
an interesting and attractive look.
ProgressBar contains built-in sets of these colors. These sets can be chosen by assigning
a ColorThemeEnum value to this property. ColorThemeEnum is an enumeration
of the following values:
| Value | Meaning | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Blue | Blue color theme. | Green | Green color theme. | Red | Red color theme. | System | System colors are chosen to paint ProgressBar. By choosing this theme you will make ProgressBar match the colors of the operating system. | Custom | This theme is automatically chosen, if you assign your custom colors to GradientColor and GradientColorEmpty properties. |