PrintDocument 클래스

정의

프린터로 출력을 보내는 재사용 가능한 개체를 정의합니다.

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PrintDocument : DependencyObject
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class PrintDocument : DependencyObject
Public Class PrintDocument
Inherits DependencyObject
상속
Object IInspectable DependencyObject PrintDocument
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

PrintDocument 는 인쇄 목록에 페이지를 추가할 수 있는 인쇄 목록 개념을 구현한 다음 진행 중인 인쇄 목록에서 다양한 메서드를 호출할 수 있습니다.

생성자

PrintDocument()

PrintDocument 클래스의 새 instance 초기화합니다.

속성

Dispatcher

이 개체가 연결된 CoreDispatcher 를 가져옵니다. CoreDispatcher는 코드가 비 UI 스레드에서 시작되더라도 UI 스레드에서 DependencyObject에 액세스할 수 있는 기능을 나타냅니다.

(다음에서 상속됨 DependencyObject)
DocumentSource

PrintDocument에 대한 문서 원본 참조를 가져옵니다.

DocumentSourceProperty

DocumentSource 종속성 속성을 식별합니다.

메서드

AddPage(UIElement)

인쇄 목록에 XAML 루트 시각적 요소를 추가합니다.

AddPagesComplete()

애플리케이션이 인쇄 목록에 페이지를 더 추가하지 않고 인쇄 목록을 해제할 준비가 되었음을 나타냅니다.

ClearValue(DependencyProperty)

종속성 속성의 로컬 값을 지웁니다.

(다음에서 상속됨 DependencyObject)
GetAnimationBaseValue(DependencyProperty)

애니메이션이 활성화되지 않은 경우에 적용되는 종속성 속성에 대해 설정된 기본 값을 반환합니다.

(다음에서 상속됨 DependencyObject)
GetValue(DependencyProperty)

DependencyObject에서 종속성 속성의 현재 유효 값을 반환합니다.

(다음에서 상속됨 DependencyObject)
InvalidatePreview()

하위 수준 인쇄 미리 보기 대화 상자 API를 참조하고 현재 인쇄 미리 보기를 무효화합니다.

ReadLocalValue(DependencyProperty)

로컬 값이 설정된 경우 종속성 속성의 로컬 값을 반환합니다.

(다음에서 상속됨 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

DependencyObject instance 특정 DependencyProperty에 대한 변경 내용을 수신 대기하기 위한 알림 함수를 등록합니다.

(다음에서 상속됨 DependencyObject)
SetPreviewPage(Int32, UIElement)

지정된 인쇄 페이지를 현재 인쇄 미리 보기 페이지로 설정합니다.

SetPreviewPageCount(Int32, PreviewPageCountType)

인쇄 미리 보기에 대해 준비되고 인쇄 목록에 추가된 페이지 수를 설정합니다.

SetValue(DependencyProperty, Object)

DependencyObject에 대한 종속성 속성의 로컬 값을 설정합니다.

(다음에서 상속됨 DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

RegisterPropertyChangedCallback을 호출하여 이전에 등록된 변경 알림을 취소합니다.

(다음에서 상속됨 DependencyObject)

이벤트

AddPages

PrintManager가 프린터로 보낼 최종 페이지 컬렉션을 요청할 때 발생합니다.

GetPreviewPage

PrintManager가 미리 보기 창에 표시할 특정 인쇄 페이지를 요청할 때 발생합니다.

Paginate

PrintManager가 미리 보기 창에 표시할 인쇄 페이지 컬렉션을 요청할 때 발생합니다.

적용 대상

추가 정보