DataGridViewRowHeaderCell.GetInheritedStyle Méthode

Définition

Obtient le style appliqué à la cellule.

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

Paramètres

inheritedCellStyle
DataGridViewCellStyle

À DataGridViewCellStyle remplir avec le style de cellule hérité.

rowIndex
Int32

Index de la ligne parente de la cellule.

includeColors
Boolean

true pour inclure des couleurs héritées dans le style de cellule retourné ; sinon, false.

Retours

Qui DataGridViewCellStyle inclut les paramètres de style de la cellule héritée de la ligne parente, de la colonne et DataGridView.

S’applique à

Voir aussi