DataGrid.ShouldSerializeAlternatingBackColor 方法
定义
指示是否应使 AlternatingBackColor 属性持久化。Indicates whether the AlternatingBackColor property should be persisted.
protected:
virtual bool ShouldSerializeAlternatingBackColor();
protected virtual bool ShouldSerializeAlternatingBackColor ();
abstract member ShouldSerializeAlternatingBackColor : unit -> bool
override this.ShouldSerializeAlternatingBackColor : unit -> bool
Protected Overridable Function ShouldSerializeAlternatingBackColor () As Boolean
返回
如果属性值已更改,不再是默认值,则为 true;否则为 false。true if the property value has changed from its default; otherwise, false.
注解
如果要为创建设计器 System.Windows.Forms.DataGrid 或创建自己的包含的控件,则通常使用此方法 System.Windows.Forms.DataGrid 。You 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.