DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Metod

Definition

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.

Gäller för

Se även