DataGrid.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

傳回

如果屬性值已經從其預設值變更,則為 true,否則為 false

備註

如果您要為 建立設計工具 System.Windows.Forms.DataGrid ,或建立自己的控制項並 System.Windows.Forms.DataGrid 入 ,您通常會使用這個方法。

適用於