StripLine.BackColor 属性

定义

获取或设置带状线的背景色。Gets or sets the background color of the strip line.

public:
 property System::Drawing::Color BackColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Drawing.ColorConverter))]
public System.Drawing.Color BackColor { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Drawing.ColorConverter))>]
member this.BackColor : System.Drawing.Color with get, set
Public Property BackColor As Color

属性值

Color

Color 结构。A Color structure. 默认颜色为 WhiteThe default color is White.

属性

注解

可将此属性设置为任何有效的 ARGB (alpha、红色、绿色、蓝色) 值。You can set this property to any valid ARGB (alpha, red, green, blue) value.

若要设置条带线的渐变,请设置 BackColorBackSecondaryColor 属性。To set a gradient for the strip line, set the BackColor and BackSecondaryColor properties.

如果将此颜色设置为 "透明",则将该颜色设置为 0-不会将颜色分配给该元素的背景。If you set this color to "transparent" - in other words, set the alpha value to 0 - no color will be assigned to the background of the element. 因此,背景将是透明的。As a result, the background will be transparent.

如果该 StripWidth 属性设置为0.0,则将绘制一条线,并且该 BorderColor 属性将确定线条的颜色,而不是此属性。If the StripWidth property is set to 0.0, a line will be drawn and the BorderColor property will determine the color of the line, not this property.

适用于