Język

DataGridViewRowHeaderCell.GetInheritedStyle Metoda

Definicja

Pobiera styl zastosowany do komórki.

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

Parametry

inheritedCellStyle
DataGridViewCellStyle

Element DataGridViewCellStyle do wypełnienia dziedziczonego stylu komórki.

rowIndex
Int32

Indeks wiersza nadrzędnego komórki.

includeColors
Boolean

true aby uwzględnić odziedziczone kolory w zwracanym stylu komórki; w przeciwnym razie, false.

Zwraca

Element DataGridViewCellStyle zawierający ustawienia stylu komórki dziedziczone z wiersza nadrzędnego komórki, kolumny i DataGridView.

Dotyczy

Zobacz też