DataGridViewComboBoxEditingControl.ApplyCellStyleToEditingControl Methode

Definition

Ändert die Benutzeroberfläche des Steuerelements so, dass dieses dem angegebenen Zellenstil entspricht.

public:
 virtual void ApplyCellStyleToEditingControl(System::Windows::Forms::DataGridViewCellStyle ^ dataGridViewCellStyle);
public virtual void ApplyCellStyleToEditingControl (System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle);
abstract member ApplyCellStyleToEditingControl : System.Windows.Forms.DataGridViewCellStyle -> unit
override this.ApplyCellStyleToEditingControl : System.Windows.Forms.DataGridViewCellStyle -> unit
Public Overridable Sub ApplyCellStyleToEditingControl (dataGridViewCellStyle As DataGridViewCellStyle)

Parameter

dataGridViewCellStyle
DataGridViewCellStyle

Der als Muster für die Benutzeroberfläche zu verwendende DataGridViewCellStyle.

Implementiert

Ausnahmen

.NET 5 und höher Versionen: Das dataGridViewCellStyle Argument ist null.

Hinweise

ForeColor BackColorDie FontEigenschaften des Steuerelements und die Eigenschaften des Steuerelements richten sich an die entsprechenden Eigenschaften des dataGridViewCellStyle Parameterwerts.

Gilt für

Siehe auch