ToolStrip.OnPaintBackground(PaintEventArgs) 메서드

정의

Paint 배경에 대해 ToolStrip 이벤트를 발생시킵니다.

protected:
 override void OnPaintBackground(System::Windows::Forms::PaintEventArgs ^ e);
protected override void OnPaintBackground (System.Windows.Forms.PaintEventArgs e);
override this.OnPaintBackground : System.Windows.Forms.PaintEventArgs -> unit
Protected Overrides Sub OnPaintBackground (e As PaintEventArgs)

매개 변수

e
PaintEventArgs

그리려는 컨트롤에 대한 정보가 포함된 PaintEventArgs입니다.

설명

이벤트가 발생하면 대리자를 통해 이벤트 처리기가 호출됩니다. 자세한 내용은 이벤트 처리 및 발생합니다.

또한 OnPaintBackground 메서드를 사용하면 파생 클래스가 대리자를 연결하지 않고도 이벤트를 처리할 수 있습니다. 이는 파생 클래스에서 이벤트를 처리하는 기본 방법입니다.

상속자 참고

상속 클래스는 배경을 지우기 위해 Windows 요청을 처리하도록 이 메서드를 재정의해야 합니다.

적용 대상