OutputColor 열거형

정의

컬러 또는 회색 음영이 포함된 콘텐츠의 인쇄 방법을 지정합니다.

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

필드

Color 1

컬러로 인쇄합니다.

Grayscale 2

회색조로 인쇄합니다.

Monochrome 3

단일 색과 농도를 사용하여 인쇄합니다.

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

설명

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

  • 멤버로 합니다 OutputColorCapability 속성은 컬렉션의 PrintCapabilities, 이러한 값을 지 원하는 프린터 출력의 형식을 지정 합니다. (대부분의 프린터 둘 이상의 형식을 지원 합니다.)

  • 값으로는 OutputColor 의 속성을 PrintTicket, 프린터는 지정 된 형식의 출력을 생성 하기 위해 직접 실행 합니다.

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

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

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

적용 대상

추가 정보