DataGridViewComboBoxEditingControl.ApplyCellStyleToEditingControl Methode

Definitie

Hiermee wijzigt u de gebruikersinterface (UI) van het besturingselement zodat deze consistent is met de opgegeven celstijl.

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)

Parameters

dataGridViewCellStyle
DataGridViewCellStyle

Het DataGridViewCellStyle te gebruiken als patroon voor de gebruikersinterface.

Implementeringen

Uitzonderingen

.NET 5 en hoger: het argument dataGridViewCellStyle is null.

Opmerkingen

De Font, BackColoren ForeColor eigenschappen van het besturingselement worden uitgelijnd met de bijbehorende eigenschappen van de dataGridViewCellStyle parameterwaarde.

Van toepassing op

Zie ook