DataGridView.BackColor 属性

定义

获取或设置控件的背景色。Gets or sets the background color for the control.

public:
 virtual property System::Drawing::Color BackColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Browsable(false)]
public override System.Drawing.Color BackColor { get; set; }
member this.BackColor : System.Drawing.Color with get, set
Public Overrides Property BackColor As Color

属性值

表示控件背景色的 ColorA Color that represents the background color of the control. 默认为 DefaultBackColor 属性的值。The default is the value of the DefaultBackColor property.

属性

注解

此属性与此控件无关。This property is not relevant to this control. 若要设置未被单元格占用的 @no__t 0 控件部分的背景色,请使用 @no__t 属性。To set the background color of the portion of the DataGridView control not occupied by cells, use the BackgroundColor property.

适用于

另请参阅