DataGridViewColumnHeaderCell.GetInheritedStyle Método

Definição

Tem o estilo aplicado à cela.

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

Parâmetros

inheritedCellStyle
DataGridViewCellStyle

A DataGridViewCellStyle para ser povoado com o estilo célula herdado.

rowIndex
Int32

O índice da linha mãe da célula.

includeColors
Boolean

true incluir as cores herdadas no estilo da célula devolvida; caso contrário, false.

Devoluções

A DataGridViewCellStyle que inclui as definições de estilo da célula herdadas da linha, coluna e DataGridView.

Exceções

rowIndex não é -1.

Observações

Este método devolve um DataGridViewCellStyle que herda as suas definições dos DataGridViewCellStyle objetos devolvidos pelas ColumnHeadersDefaultCellStyle propriedades e DefaultCellStyle do DataGridView. Para mais informações, consulte os estilos de célula no controlo DataGridView do Windows Forms .

Aplica-se a

Ver também