DataGridViewRow.InheritedStyle 屬性

定義

取得資料列的作用中儲存格樣式。

public:
 virtual property System::Windows::Forms::DataGridViewCellStyle ^ InheritedStyle { System::Windows::Forms::DataGridViewCellStyle ^ get(); };
public override System.Windows.Forms.DataGridViewCellStyle InheritedStyle { get; }
member this.InheritedStyle : System.Windows.Forms.DataGridViewCellStyle
Public Overrides ReadOnly Property InheritedStyle As DataGridViewCellStyle

屬性值

DataGridViewCellStyle

DataGridViewCellStyle,指定資料列中儲存格的格式和樣式資訊。

例外狀況

資料列位於 DataGridView 控制項中而且是一個共用資料列。

備註

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

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

適用於

另請參閱