DataGrid.ShouldSerializeSelectionForeColor 方法

定義

指示是否應該保存 SelectionForeColor 屬性。

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

傳回

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

備註

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

適用於