Share via


PrintForm 클래스

런타임된 시에 Windows Form의 이미지를 인쇄할 수 있습니다.

상속 계층 구조

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.VisualBasic.PowerPacks.Printing.PrintForm

네임스페이스:  Microsoft.VisualBasic.PowerPacks.Printing
어셈블리:  Microsoft.VisualBasic.PowerPacks.Vs(Microsoft.VisualBasic.PowerPacks.Vs.dll)

구문

‘선언
<ToolboxBitmapAttribute(GetType(PrintForm), "Microsoft.VisualBasic.PowerPacks.Printing.PrintForm.bmp")> _
Public Class PrintForm _
    Inherits Component
[ToolboxBitmapAttribute(typeof(PrintForm), "Microsoft.VisualBasic.PowerPacks.Printing.PrintForm.bmp")]
public class PrintForm : Component
[ToolboxBitmapAttribute(typeof(PrintForm), L"Microsoft.VisualBasic.PowerPacks.Printing.PrintForm.bmp")]
public ref class PrintForm : public Component
[<ToolboxBitmapAttribute(typeof(PrintForm), "Microsoft.VisualBasic.PowerPacks.Printing.PrintForm.bmp")>]
type PrintForm =  
    class
        inherit Component
    end
public class PrintForm extends Component

PrintForm 형식에서는 다음과 같은 멤버를 노출합니다.

생성자

  이름 설명
Public 메서드 PrintForm() PrintForm 클래스의 새 인스턴스를 초기화합니다.
Public 메서드 PrintForm(IContainer) 새 인스턴스를 초기화를 PrintForm 클래스를 지정 하는 IContainer 에 부모가 될 것입니다.
Public 메서드 PrintForm(Form) 새 인스턴스를 초기화는 PrintForm 클래스를 지정 하는 Form 위치는 됩니다 수 부모가 있습니다.

위쪽

속성

  이름 설명
Protected 속성 CanRaiseEvents 구성 요소가 이벤트를 발생시킬 수 있는지 여부를 나타내는 값을 가져옵니다. (Component에서 상속됨)
Public 속성 Container Component 가 포함된 IContainer를 가져옵니다. (Component에서 상속됨)
Protected 속성 DesignMode Component 가 현재 디자인 모드인지 여부를 나타내는 값을 가져옵니다. (Component에서 상속됨)
Public 속성 DocumentName 문서 인쇄 중에 인쇄 상태 대화 상자 또는 프린터 큐에 표시할 문서 이름을 가져오거나 설정합니다.
Protected 속성 Events Component에 연결된 이벤트 처리기의 목록을 가져옵니다. (Component에서 상속됨)
Public 속성 Form 인쇄할 폼을 가져오거나 설정 합니다.
Public 속성 PrintAction 출력을 프린터, 인쇄 미리 보기 창 또는 파일로 보낼지를 나타내는 값을 가져오거나 설정 합니다.
Public 속성 PrinterSettings 가져오거나는 PrinterSettings 프린터의 다양 한 속성을 지정할 수 있는 개체입니다.
Public 속성 PrintFileName 캡슐화 된 포스트스크립트 파일 및 경로 파일이 저장 됩니다 경우 파일 이름을 가져오거나 설정 합니다.의 PrintAction 속성을 설정 PrintToFile.
Public 속성 Site ComponentISite를 가져오거나 설정합니다. (Component에서 상속됨)

위쪽

메서드

  이름 설명
Public 메서드 CreateObjRef 원격 개체와 통신하는 데 사용되는 프록시 생성에 필요한 모든 관련 정보가 들어 있는 개체를 만듭니다. (MarshalByRefObject에서 상속됨)
Public 메서드 Dispose() Component 에서 사용하는 모든 리소스를 해제합니다. (Component에서 상속됨)
Protected 메서드 Dispose(Boolean) 사용 하는 관리 되지 않는 리소스를 해제를 PrintForm 구성 요소와 선택적으로 버전 관리 되는 리소스입니다. (Component.Dispose(Boolean)을(를) 재정의함)
Public 메서드 Equals 지정한 개체와 현재 개체가 같은지 여부를 확인합니다. (Object에서 상속됨)
Protected 메서드 Finalize 가비지 수집에 의해 Component가 회수되기 전에 관리되지 않는 리소스를 해제하고 기타 정리 작업을 수행합니다. (Component에서 상속됨)
Public 메서드 GetHashCode 특정 형식에 대한 해시 함수 역할을 합니다. (Object에서 상속됨)
Public 메서드 GetLifetimeService 이 인스턴스의 수명 정책을 제어하는 현재의 수명 서비스 개체를 검색합니다. (MarshalByRefObject에서 상속됨)
Protected 메서드 GetService Component 또는 해당 Container에서 제공하는 서비스를 나타내는 개체를 반환합니다. (Component에서 상속됨)
Public 메서드 GetType 현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨)
Public 메서드 InitializeLifetimeService 이 인스턴스의 수명 정책을 제어하기 위한 수명 서비스 개체를 가져옵니다. (MarshalByRefObject에서 상속됨)
Protected 메서드 MemberwiseClone() 현재 Object의 단순 복사본을 만듭니다. (Object에서 상속됨)
Protected 메서드 MemberwiseClone(Boolean) 현재 MarshalByRefObject 개체의 단순 복사본을 만듭니다. (MarshalByRefObject에서 상속됨)
Protected 메서드 OnBeginPrint BeginPrint 이벤트를 발생시킵니다.
Protected 메서드 OnEndPrint EndPrint 이벤트를 발생시킵니다.
Protected 메서드 OnQueryPageSettings QueryPageSettings 이벤트를 발생시킵니다.
Public 메서드 Print() Windows Form의 이미지를 지정 된 대상에 보냅니다 있는 PrintAction 속성입니다.
Public 메서드 Print(Form, PrintForm.PrintOption) Windows Form의 이미지를 지정 된 대상에 보냅니다 있는 PrintAction 속성을 형식 지정 하 고 인쇄 옵션
Public 메서드 ToString Component 의 이름이 포함된 String을 반환합니다.이 메서드는 재정의할 수 없습니다. (Component에서 상속됨)

위쪽

이벤트

  이름 설명
Public 이벤트 BeginPrint 발생할 때의 Print 메서드를 호출할 경우 첫 페이지 문서 인쇄를 하기 전에.
Public 이벤트 Disposed Dispose 메서드를 호출하여 구성 요소가 삭제되는 경우 발생합니다. (Component에서 상속됨)
Public 이벤트 EndPrint 문서의 마지막 페이지가 인쇄되면 발생합니다.
Public 이벤트 QueryPageSettings 각 페이지가 인쇄되기 바로 전에 발생합니다.

위쪽

설명

PrintForm 구성 요소를 사용 하면 실행된 시에 프린터, 인쇄 미리 보기 창 또는 파일로 폼의 이미지를 인쇄 합니다.이 구성 요소의 동작은 이전 버전의 Visual Basic에서 사용되던 PrintForm 메서드의 동작을 대신합니다.

예제

다음 예제에서는 PrintForm 구성 요소의 일반적인 사용 방법을 보여 줍니다.

Dim pf As New PrintForm
pf.Form = Me
pf.PrintAction = PrintToPrinter
pf.Print()

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

참고 항목

참조

Microsoft.VisualBasic.PowerPacks.Printing 네임스페이스

기타 리소스

PrintForm 구성 요소(Visual Basic)

방법: PrintForm 구성 요소를 사용하여 폼 인쇄(Visual Basic)

방법: 폼의 클라이언트 영역 인쇄(Visual Basic)

방법: 폼의 클라이언트 영역 및 비클라이언트 영역 인쇄(Visual Basic)

방법: 스크롤 가능 폼 인쇄(Visual Basic)

PrintForm 구성 요소를 참조하는 응용 프로그램 배포(Visual Basic)