DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) 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.
Tillämpar den angivna DataGridViewCellStyle på den aktuella DataGridViewCellStyle.
public:
virtual void ApplyStyle(System::Windows::Forms::DataGridViewCellStyle ^ dataGridViewCellStyle);
public virtual void ApplyStyle(System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle);
abstract member ApplyStyle : System.Windows.Forms.DataGridViewCellStyle -> unit
override this.ApplyStyle : System.Windows.Forms.DataGridViewCellStyle -> unit
Public Overridable Sub ApplyStyle (dataGridViewCellStyle As DataGridViewCellStyle)
Parametrar
- dataGridViewCellStyle
- DataGridViewCellStyle
Att DataGridViewCellStyle gälla för den aktuella DataGridViewCellStyle.
Undantag
dataGridViewCellStyle är null.
Kommentarer
Metoden ApplyStyle tillämpar värdena för de egenskaper som anges i parametern dataGridViewCellStyle för den aktuella DataGridViewCellStyle. Om en egenskap inte anges i dataGridViewCellStylebehåller aktuellt DataGridViewCellStyle värde för den egenskapen.