PrintForm 클래스

런타임에 Windows Form 이미지 인쇄를 사용하도록 설정합니다.

상속 계층 구조

Object
  MarshalByRefObject
    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 구성 요소를 사용 하면 런타임에 프린터, 인쇄 미리 보기 창 또는 파일로 폼의 이미지를 인쇄할 수 있습니다. 해당 동작을 대체 하는 PrintForm 이전 버전의 Visual Basic 메서드.

예제

다음 예제에서는의 일반적인 용도 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)