DataGrid.ShouldSerializeBackgroundColor 方法

定义

指示是否应使 BackgroundColor 属性持久化。Indicates whether the BackgroundColor property should be persisted.

protected:
 virtual bool ShouldSerializeBackgroundColor();
protected virtual bool ShouldSerializeBackgroundColor ();
abstract member ShouldSerializeBackgroundColor : unit -> bool
override this.ShouldSerializeBackgroundColor : unit -> bool
Protected Overridable Function ShouldSerializeBackgroundColor () As Boolean

返回

Boolean

如果属性值已更改,不再是默认值,则为 true;否则为 falsetrue if the property value has changed from its default; otherwise, false.

注解

如果要为创建设计器 System.Windows.Forms.DataGrid 或创建自己的包含的控件,则通常使用此方法 System.Windows.Forms.DataGridYou typically use this method if you are either creating a designer for the System.Windows.Forms.DataGrid or creating your own control incorporating the System.Windows.Forms.DataGrid.

适用于