DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した DataGridViewCellStyle を現在の 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)
パラメーター
- dataGridViewCellStyle
- DataGridViewCellStyle
例外
dataGridViewCellStyle は nullです。
注釈
ApplyStyle メソッドは、dataGridViewCellStyle パラメーターで設定されているプロパティの値を現在のDataGridViewCellStyleに適用します。 プロパティが dataGridViewCellStyle で設定されていない場合、現在の DataGridViewCellStyle はそのプロパティの値を保持します。