PageOrientation Enum

Definitie

Hiermee geeft u op hoe pagina's met inhoud zijn gericht op afdrukmedia.

public enum class PageOrientation
public enum PageOrientation
type PageOrientation = 
Public Enum PageOrientation
Overname
PageOrientation

Velden

Name Waarde Description
Unknown 0

De functie (waarvan de opties worden vertegenwoordigd door deze opsomming) is ingesteld op een optie die niet is gedefinieerd in het afdrukschema.

Landscape 1

De inhoud van het afbeeldingsbare gebied wordt gedraaid op de pagina 90 graden linksom vanuit de standaardstand (staand).

Portrait 2

Standaardstand.

ReverseLandscape 3

Inhoud van het afbeeldingsbare gebied wordt gedraaid op de pagina 90 graden rechtsom van de standaardstand (staand).

ReversePortrait 4

De inhoud van het afbeeldingsbare gebied is ondersteboven ten opzichte van de standaardstand (staand).

Voorbeelden

In het volgende voorbeeld ziet u hoe u deze opsomming gebruikt om waarden in te stellen 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

Opmerkingen

Gebruik de waarden van dit type voornamelijk voor deze doeleinden:

De onbekende waarde wordt nooit gebruikt in eigenschappen van PrintCapabilities objecten.

U moet nooit een PrintTicket eigenschap instellen op Onbekend. Als een andere PrintTicket productietoepassing een PrintTicket-document heeft gemaakt waarmee de afdrukstandfunctie wordt ingesteld op een niet-herkende optie (dat wil gezegd, een optie die niet is gedefinieerd in het afdrukschema), heeft een PrintTicket object in uw toepassing die is samengesteld met dat document onbekend als de waarde van de PageOrientation eigenschap.

Hoewel de PrintTicket en PrintCapabilities klassen niet kunnen worden overgenomen, kunt u het afdrukschema uitbreiden om functies van het afdrukapparaat te herkennen waarvoor geen rekening wordt gehouden in de PrintTicket of PrintCapabilities klassen. Zie Het afdrukschema uitbreiden en nieuwe afdruksysteemklassen maken voor meer informatie.

Van toepassing op

Zie ook