DataGridViewRowHeaderCell.GetInheritedStyle 方法

定義

取得套用到儲存格的樣式。

public:
 override System::Windows::Forms::DataGridViewCellStyle ^ GetInheritedStyle(System::Windows::Forms::DataGridViewCellStyle ^ inheritedCellStyle, int rowIndex, bool includeColors);
public override System.Windows.Forms.DataGridViewCellStyle GetInheritedStyle (System.Windows.Forms.DataGridViewCellStyle inheritedCellStyle, int rowIndex, bool includeColors);
public override System.Windows.Forms.DataGridViewCellStyle GetInheritedStyle (System.Windows.Forms.DataGridViewCellStyle? inheritedCellStyle, int rowIndex, bool includeColors);
override this.GetInheritedStyle : System.Windows.Forms.DataGridViewCellStyle * int * bool -> System.Windows.Forms.DataGridViewCellStyle
Public Overrides Function GetInheritedStyle (inheritedCellStyle As DataGridViewCellStyle, rowIndex As Integer, includeColors As Boolean) As DataGridViewCellStyle

參數

inheritedCellStyle
DataGridViewCellStyle

DataGridViewCellStyle 要填入繼承的儲存格樣式。

rowIndex
Int32

儲存格的父資料列索引。

includeColors
Boolean

如果要在傳回的儲存格樣式中包含已繼承的色彩,則為 true;否則為 false

傳回

DataGridViewCellStyle 包含繼承自儲存格的父資料列、資料行和 DataGridView 的儲存格樣式設定。

適用於

另請參閱