DataGridViewColumn.InheritedStyle 屬性

定義

取得目前套用至資料行的儲存格樣式。

public:
 virtual property System::Windows::Forms::DataGridViewCellStyle ^ InheritedStyle { System::Windows::Forms::DataGridViewCellStyle ^ get(); };
[System.ComponentModel.Browsable(false)]
public override System.Windows.Forms.DataGridViewCellStyle InheritedStyle { get; }
[<System.ComponentModel.Browsable(false)>]
member this.InheritedStyle : System.Windows.Forms.DataGridViewCellStyle
Public Overrides ReadOnly Property InheritedStyle As DataGridViewCellStyle

屬性值

DataGridViewCellStyle

DataGridViewCellStyle,表示用來顯示資料行的儲存格樣式。

屬性

備註

不論也套用至儲存格的任何資料列樣式,這個屬性都適合用來判斷資料行中所有儲存格的儲存格樣式。 資料行 InheritedStyle 屬性會從 DefaultCellStyleDataGridView.DefaultCellStyle 屬性繼承其值。

如需儲存格樣式繼承的詳細資訊,請參閱DataGridView 控制項中的儲存格樣式Windows Forms

適用於

另請參閱