DataGridViewColumnHeaderCell.GetInheritedStyle Methode

Definitie

Hiermee wordt de stijl toegepast op de cel.

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

Parameters

inheritedCellStyle
DataGridViewCellStyle

Een DataGridViewCellStyle die moet worden gevuld met de overgenomen celstijl.

rowIndex
Int32

De index van de bovenliggende rij van de cel.

includeColors
Boolean

true overgenomen kleuren in de geretourneerde celstijl op te nemen; anders, false.

Retouren

Een DataGridViewCellStyle met de stijlinstellingen van de cel die is overgenomen van de bovenliggende rij, kolom en DataGridView.

Uitzonderingen

rowIndex is niet -1.

Opmerkingen

Deze methode retourneert een DataGridViewCellStyle die de instellingen overneemt van de DataGridViewCellStyle objecten die worden geretourneerd door de ColumnHeadersDefaultCellStyle en DefaultCellStyle eigenschappen van de DataGridView. Zie voor meer informatie Celstijlen in het Windows Forms DataGridView-besturingselement.

Van toepassing op

Zie ook