PrintDocument.OnBeginPrint(PrintEventArgs) 메서드

정의

BeginPrint 이벤트를 발생시킵니다. 메서드가 Print() 호출된 후 문서의 첫 페이지가 인쇄되기 전에 호출됩니다.

protected public:
 virtual void OnBeginPrint(System::Drawing::Printing::PrintEventArgs ^ e);
protected:
 virtual void OnBeginPrint(System::Drawing::Printing::PrintEventArgs ^ e);
protected internal virtual void OnBeginPrint(System.Drawing.Printing.PrintEventArgs e);
protected virtual void OnBeginPrint(System.Drawing.Printing.PrintEventArgs e);
abstract member OnBeginPrint : System.Drawing.Printing.PrintEventArgs -> unit
override this.OnBeginPrint : System.Drawing.Printing.PrintEventArgs -> unit
Protected Friend Overridable Sub OnBeginPrint (e As PrintEventArgs)
Protected Overridable Sub OnBeginPrint (e As PrintEventArgs)

매개 변수

e
PrintEventArgs

이벤트 데이터를 포함하는 A PrintEventArgs 입니다.

설명

OnBeginPrint 메서드를 사용하면 파생 클래스가 대리자를 연결하지 않고 이벤트를 처리할 수 있습니다. 파생 클래스에서 이벤트를 처리하기 위한 기본 설정 기술입니다.

파생 클래스가 메서드를 OnBeginPrint 호출할 때 대리자를 통해 이벤트 처리기를 호출하여 이벤트를 발생합니다 BeginPrint . 자세한 내용은 이벤트 처리 및 발생을 참조하세요.

상속자 참고

파생 클래스에서 재정의하는 OnBeginPrint(PrintEventArgs) 경우 등록된 대리자가 이벤트를 받도록 기본 클래스의 OnBeginPrint(PrintEventArgs) 메서드를 호출해야 합니다. 이 메서드는 초기화에 적합합니다.

적용 대상

추가 정보