DataGridViewColumnHeaderCell.GetInheritedStyle Metoda

Definice

Získá styl použitý na buňku.

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

Vyplní DataGridViewCellStyle se styl zděděné buňky.

rowIndex
Int32

Index nadřazeného řádku buňky.

includeColors
Boolean

truezahrnout zděděné barvy do vráceného stylu buňky; v opačném případě . false

Návraty

DataGridViewCellStyle

A DataGridViewCellStyle , která zahrnuje nastavení stylu buňky zděděné z nadřazeného řádku buňky, sloupce a DataGridView.

Výjimky

rowIndex není -1.

Poznámky

Tato metoda vrátí DataGridViewCellStyle , který dědí jeho nastavení z DataGridViewCellStyle objektů vrácených vlastnostmi ColumnHeadersDefaultCellStyle a DefaultCellStyle vlastnostmi DataGridView. Další informace najdete v tématu Styly buněk v ovládacím prvku model Windows Forms DataGridView.

Platí pro

Viz také