WizardForm.TaskProgressEndColor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the ending color for the progress bar gradient.
public:
property System::Drawing::Color TaskProgressEndColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
public System.Drawing.Color TaskProgressEndColor { get; set; }
member this.TaskProgressEndColor : System.Drawing.Color with get, set
Public Property TaskProgressEndColor As Color
Property Value
The Color structure that is used as the ending color of the progress bar gradient. The default color is [A=255, R=204, G=236, B=255], which is an integer value of -3347201.
Examples
The following example demonstrates the TaskProgressEndColor property. This example sets the value of the TaskProgressEndColor property to the color yellow. This code example is part of a larger example provided for the WizardForm class.
// Customize the StartTaskProgressMethod.
protected override void StartTaskProgress()
{
TaskProgressStartColor = Color.Red;
TaskProgressEndColor = Color.Yellow;
// Default TaskProgressScrollSpeed is a value of 6.
TaskProgressScrollSpeed = 2;
// Default TaskProgressGradientSpeed is a value of 1;
TaskProgressGradientSpeed = 3;
//Set the task Glyph.
TaskGlyph = Icon.FromHandle(Cursors.Arrow.Handle).ToBitmap();
TaskGlyph.RotateFlip(RotateFlipType.Rotate90FlipNone);
// Implement the StartTaskProgress from the base class.
base.StartTaskProgress();
}
// Customize the StartTaskProgressMethod.
protected override void StartTaskProgress()
{
TaskProgressStartColor = Color.Red;
TaskProgressEndColor = Color.Yellow;
// Default TaskProgressScrollSpeed is a value of 6.
TaskProgressScrollSpeed = 2;
// Default TaskProgressGradientSpeed is a value of 1;
TaskProgressGradientSpeed = 3;
//Set the task Glyph.
TaskGlyph = Icon.FromHandle(Cursors.Arrow.Handle).ToBitmap();
TaskGlyph.RotateFlip(RotateFlipType.Rotate90FlipNone);
// Implement the StartTaskProgress from the base class.
base.StartTaskProgress();
}
Remarks
The progress bar displays a color gradient that is defined by the values of the TaskProgressStartColor and TaskProgressEndColor properties. The TaskProgressEndColor property enables you to customize the ending color of the progress bar gradient. If the values of TaskProgressStartColor and TaskProgressEndColor are equal, the progress bar appears as a solid line.
You can specify the value of this property as a system-defined color, such as Color.Yellow
, or as a 32-bit ARGB value, such as Color.FromArgb(255,255,255,0)
or Color.FromArgb(-256)
.