PageOrientation Sabit listesi

Tanım

İçerik sayfalarının yazdırma medyası üzerinde nasıl yönlendirilmiş olduğunu belirtir.

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

Alanlar

Landscape 1

Görüntülenebilir alanın içeriği sayfada standart (dikey) yönden saat yönünün tersine 90 derece döndürülür.

Portrait 2

Standart yönlendirme.

ReverseLandscape 3

Görüntülenebilir alanın içeriği sayfada standart (dikey) yönden saat yönünde 90 derece döndürülür.

ReversePortrait 4

Görüntülenebilir alanın içeriği standart (dikey) yönlendirmeye göre baş aşağıdır.

Unknown 0

Özellik (seçenekleri bu numaralandırma ile temsil edilir) Yazdırma Şemasında tanımlanmayan bir seçeneğe ayarlanır.

Örnekler

Aşağıdaki örnekte, değerleri ayarlamak PrintTicket için bu numaralandırmanın nasıl kullanılacağı gösterilmektedir.

// 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

Açıklamalar

Bu türün değerlerini öncelikle şu amaçlar için kullanın:

Bilinmeyen değer hiçbir zaman nesnelerin özelliklerinde PrintCapabilities kullanılmaz.

Bir özelliği hiçbir zaman Bilinmiyor olarak ayarlamamalısınızPrintTicket. Başka PrintTicket bir üreten uygulama yönlendirme özelliğini tanınmayan bir seçeneğe (Yani, Yazdırma Şemasında tanımlanmayan bir seçenek) ayarlayan bir PrintTicket belgesi oluşturduysa, uygulamanızda bu belgeyle oluşturulan nesnenin PrintTicket değeri PageOrientation Bilinmiyor olur.

ve PrintCapabilities sınıfları devralınamasa daPrintTicket, veya PrintCapabilities sınıflarında hesaba katılmayan yazdırma cihazı özelliklerini tanımak için Yazdırma Şemasını PrintTicket genişletebilirsiniz. Daha fazla bilgi için bkz . Nasıl yapılır: Yazdırma Şemasını Genişletme ve Yeni Yazdırma Sistemi Sınıfları Oluşturma.

Şunlara uygulanır

Ayrıca bkz.