DataGridViewComboBoxEditingControl.ApplyCellStyleToEditingControl Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Ändrar kontrollens användargränssnitt så att det överensstämmer med det angivna cellformatet.
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)
Parametrar
- dataGridViewCellStyle
- DataGridViewCellStyle
Att DataGridViewCellStyle använda som ett mönster för användargränssnittet.
Implementeringar
Undantag
.NET 5 och senare versioner: Argumentet dataGridViewCellStyle är null.
Kommentarer
Egenskaperna Font, BackColoroch ForeColor för kontrollen överensstämmer med motsvarande egenskaper för dataGridViewCellStyle parametervärdet.