PageOrientation 열거형

정의

인쇄 미디어에서 콘텐츠 페이지의 방향을 설정하는 방법을 지정합니다.

public enum class PageOrientation
public enum PageOrientation
type PageOrientation = 
Public Enum PageOrientation
상속
PageOrientation

필드

Landscape 1

페이지에서 인쇄 허용 영역의 콘텐츠가 표준(세로) 방향을 기준으로 반시계 방향으로 90도 회전합니다.

Portrait 2

표준 방향입니다.

ReverseLandscape 3

페이지에서 인쇄 허용 영역의 콘텐츠가 표준(세로) 방향을 기준으로 시계 방향으로 90도 회전합니다.

ReversePortrait 4

인쇄 허용 영역의 콘텐츠가 표준(세로) 방향을 기준으로 위 아래가 뒤집힙니다.

Unknown 0

기능(이 열거형으로 해당 옵션이 나타나는 기능)은 인쇄 스키마에 정의되지 않은 옵션으로 설정됩니다.

예제

다음 예제에서는이 열거형을 사용 하 여 설정 하는 방법을 보여 줍니다 PrintTicket 값입니다.

// Use different PrintTickets for different FixedDocuments.
PrintTicket ptFD = new PrintTicket();

if (_firstDocumentPrintTicket <= 1)
{   // Print the first document in black/white and in portrait
    // orientation.  Since the PrintTicket at the
    // FixedDocumentSequence level already specifies portrait
    // orientation, this FixedDocument can just inherit that
    // setting without having to set it again.
    ptFD.PageOrientation = PageOrientation.Portrait;
    ptFD.OutputColor = OutputColor.Monochrome;
    _firstDocumentPrintTicket++;
}

else // if (_firstDocumentPrintTicket > 1)
{   // Print the second document in color and in landscape
    // orientation.  Since the PrintTicket at the
    // FixedDocumentSequence level already specifies portrait
    // orientation, this FixedDocument needs to set its
    // PrintTicket with landscape orientation in order to
    // override the higher level setting.
    ptFD.PageOrientation = PageOrientation.Landscape;
    ptFD.OutputColor = OutputColor.Color;
}
' Use different PrintTickets for different FixedDocuments.
Dim ptFD As New PrintTicket()

If _firstDocumentPrintTicket <= 1 Then
    ' orientation.  Since the PrintTicket at the
    ' FixedDocumentSequence level already specifies portrait
    ' orientation, this FixedDocument can just inherit that
    ' setting without having to set it again.
    ptFD.PageOrientation = PageOrientation.Portrait
    ptFD.OutputColor = OutputColor.Monochrome
    _firstDocumentPrintTicket += 1

Else ' if (_firstDocumentPrintTicket > 1)
    ' orientation.  Since the PrintTicket at the
    ' FixedDocumentSequence level already specifies portrait
    ' orientation, this FixedDocument needs to set its
    ' PrintTicket with landscape orientation in order to
    ' override the higher level setting.
    ptFD.PageOrientation = PageOrientation.Landscape
    ptFD.OutputColor = OutputColor.Color
End If

설명

이러한 목적을 위해 기본적으로이 형식의 값을 사용 합니다.

알 수 없는 값은 개체의 PrintCapabilities 속성에 사용되지 않습니다.

설정할 수 없습니다는 PrintTicket 속성을 알 수 없는 합니다. 다른 경우 PrintTicket 생성을 PrintTicket 문서가 인식할 수 없는 옵션으로 방향 기능을 설정 하는 (에 정의 되지 않은 옵션 이므로 Print Schema)에 PrintTicket 해당 문서를 사용 하 여 생성 된 애플리케이션에서 개체에 포함 됩니다 알 수 없는 값으로는 PageOrientation 속성입니다.

하지만 합니다 PrintTicketPrintCapabilities 클래스를 상속할 수 없습니다, 확장할 수 있습니다는 인쇄 스키마 에서 처리 하지 않은 인쇄 디바이스 기능을 인식 하는 PrintTicket 또는 PrintCapabilities 클래스. 자세한 내용은 방법: 인쇄 스키마 확장 및 새 인쇄 시스템 클래스 만들기를 참조하세요.

적용 대상

추가 정보