- Background style
- Background segments
- Background color settings
Contact Support
Background Settings in Windows Forms Progress Bar (ProgressBarAdv)
29 Apr 20215 minutes to read
The ProgressBarAdv control consists of various properties to customize the background. These properties and their description are given below.
Background style
The style of the background can be set using the properties given below.
Property table
ProgressBarAdv property | Description |
---|---|
BackgroundStyle | Determines the style of the background. It includes the options given below.Image,Gradient,VerticalGradient,Tube,MultipleGradient,System, Office2016Colorful, Office2016White, Office2016DarkGray, Office2016Black and None. |
BackgroundFallBackStyle | Determines the style of the background when BackgroundStyle is set to 'System', provided the system does not support themes. |
this.progressBarAdv1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Gradient;
this.progressBarAdv1.BackgroundFallbackStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.MultipleGradient;
Me.progressBarAdv1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Gradient
Me.progressBarAdv1.BackgroundFallbackStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.MultipleGradient
Office2016Colorful
This option helps to set the Office2016Colorful BackgroundStyle.
this.progressBarAdv1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Office2016Colorful;
Me.progressBarAdv1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Office2016Colorful;
Office2016White
This option helps to set the Office2016White BackgroundStyle.
this.progressBarAdv1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Office2016White;
Me.progressBarAdv1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Office2016White;
Office2016DarkGray
This option helps to set the Office2016DarkGray BackgroundStyle.
this.progressBarAdv1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Office2016DarkGray;
Me.progressBarAdv1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Office2016DarkGray;
Office2016Black
This option helps to set the Office2016Black BackgroundStyle.
this.progressBarAdv1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Office2016Black;
Me.progressBarAdv1.BackgroundStyle = Syncfusion.Windows.Forms.Tools.ProgressBarBackgroundStyles.Office2016Black;
NOTE
To display the above styles in different colors the BackGradientStartColor and BackGradientEndColor properties can be used.
Background segments
The background of the ProgressBarAdv can be displayed with a segmented appearance using the property given below.
Property table
ProgressBarAdv property | Description |
---|---|
BackSegments | Determines if the background is segmented.The BackgroundStyle property must be set to 'Tube'. |
this.progressBarAdv1.BackSegments = true;
Me.progressBarAdv1.BackSegments = True
Background color settings
This section illustrates the color settings that can be applied to the background of the ProgressBarAdv.
Gradient color
The color of the background gradient can be changed using the properties given below.
Property table
ProgressBarAdv property | Description |
---|---|
BackGradientStartColor | Specifies the start color of the background gradient.The BackgroundStyle property should be set to 'Gradient' or 'VerticalGradient'. |
BackGradientEndColor | Specifies the end color of the background gradient.The BackgroundStyle property should be set to 'Gradient' or 'VerticalGradient'. |
this.progressBarAdv1.BackGradientEndColor = System.Drawing.Color.Aquamarine;
this.progressBarAdv1.BackGradientStartColor = System.Drawing.Color.IndianRed;
Me.progressBarAdv1.BackGradientEndColor = System.Drawing.Color.Aquamarine
Me.progressBarAdv1.BackGradientStartColor = System.Drawing.Color.IndianRed
The background gradient can be displayed with multiple colors using the property given below.
Property table
ProgressBarAdv property | Description |
---|---|
BackMultipleColors | Specifies the array of colors used to draw the multiple gradient of the background.The BackgroundStyle property should be set to 'MultipleGradient'. |
this.progressBarAdv1.BackMultipleColors = new System.Drawing.Color[] {System.Drawing.Color.Blue, System.Drawing.Color.Red, System.Drawing.Color.Green, System.Drawing.Color.Pink, System.Drawing.Color.Yellow};
Me.progressBarAdv1.BackMultipleColors = New System.Drawing.Color[] {System.Drawing.Color.Blue, System.Drawing.Color.Red, System.Drawing.Color.Green, System.Drawing.Color.Pink, System.Drawing.Color.Yellow}
Tube color
Colors can be set for the background tube of the ProgressBarAdv.
Property table
ProgressBarAdv property | Description |
---|---|
BackTubeStartColor | Specifies the start color of the background tube.The BackgroundStyle property should be set to 'Tube'. |
BackTubeEndColor | Specifies the end color of the background tube.The BackgroundStyle property should be set to 'Tube'. |
this.progressBarAdv1.BackTubeEndColor = System.Drawing.Color.RosyBrown;
this.progressBarAdv1.BackTubeStartColor = System.Drawing.Color.Yellow;
Me.progressBarAdv1.BackTubeEndColor = System.Drawing.Color.RosyBrown
Me.progressBarAdv1.BackTubeStartColor = System.Drawing.Color.Yellow