DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) 메서드

정의

지정된 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에 적용할 DataGridViewCellStyle입니다.

예외

dataGridViewCellStyle이(가) null인 경우

설명

이 메서드는 ApplyStyle 매개 변수에 설정된 dataGridViewCellStyle 속성의 값을 현재 DataGridViewCellStyle값에 적용합니다. 속성이 설정 dataGridViewCellStyle되지 않은 경우 현재 DataGridViewCellStyle 는 해당 속성의 값을 유지합니다.

적용 대상

추가 정보