DataGridTableStyle.ShouldSerializeAlternatingBackColor 方法

定义

指示是否应使 AlternatingBackColor 属性持久化。

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

返回

Boolean

如果属性值已更改,不再是默认值,则为 true;否则为 false

注解

如果为 DataGridTableStyle 合并的控件创建设计器或创建自己的控件 DataGridTableStyle,通常使用此方法。

适用于