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

注釈

次の目的で、この型の値を使用します。

  • のプロパティである コレクションのOutputColorCapabilityPrintCapabilitiesメンバーとして、これらの値はプリンターでサポートされる出力の種類を指定します。 (多くのプリンターでは、複数の種類がサポートされています。

  • の プロパティの OutputColor 値として、指定された種類の PrintTicket出力を生成するようにプリンターに指示します。

Unknown 値は、オブジェクトのPrintCapabilitiesプロパティでは使用されません。

プロパティを にUnknown設定PrintTicketしないでください。 出力色機能を認識できないオプション (つまり、印刷スキーマPrintTicketで定義されていないオプション) に設定する PrintTicket ドキュメントを他PrintTicketの生成アプリケーションが作成した場合、そのドキュメントで構築されたアプリケーション内のオブジェクトは、 プロパティのOutputColor値として持ちますUnknown

クラスと PrintCapabilities クラスはPrintTicket継承できませんが、 クラスまたは PrintCapabilities クラスで考慮されていない印刷デバイス機能を認識するように印刷スキーマPrintTicket拡張できます。 詳細については、「 方法: 印刷スキーマを拡張する」および「新しい印刷システム クラスを作成する」を参照してください。

適用対象

こちらもご覧ください