PageOrientation Výčet
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Určuje, jak jsou stránky obsahu orientované na tiskové médium.
public enum class PageOrientation
public enum PageOrientation
type PageOrientation =
Public Enum PageOrientation
- Dědičnost
Pole
| Name | Hodnota | Description |
|---|---|---|
| Unknown | 0 | Funkce (jejíž možnosti jsou reprezentovány tímto výčtem) je nastavena na možnost, která není definována ve schématu tisku. |
| Landscape | 1 | Obsah obrázkové oblasti se otočí na stránce o 90 stupňů proti směru hodinových ručiček ze standardní orientace (na výšku). |
| Portrait | 2 | Standardní orientace. |
| ReverseLandscape | 3 | Obsah obrázkové oblasti se otočí na stránce o 90 stupňů ve směru hodinových ručiček ze standardní orientace (na výšku). |
| ReversePortrait | 4 | Obsah obrázkové oblasti je vzhůru nohama vzhledem ke standardní orientaci (na výšku). |
Příklady
Následující příklad ukazuje, jak použít tento výčet k nastavení PrintTicket hodnot.
// 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
Poznámky
Hodnoty tohoto typu používejte primárně pro tyto účely:
Jako členové PageOrientationCapability kolekce, což je vlastnost PrintCapabilities, tyto hodnoty označují typy orientace, které tiskárna podporuje.
Jako hodnota PageOrientation vlastnosti , PrintTickethodnota směruje tiskárnu použít určitou orientaci.
Neznámá hodnota se nikdy nepoužívá ve vlastnostech PrintCapabilities objektů.
Nikdy byste neměli nastavit PrintTicket vlastnost Unknown. Pokud některá jiná PrintTicket aplikace pro výrobu vytvořila dokument PrintTicket , který nastaví funkci orientace na nerozpoznanou možnost (tj. možnost, která není definována ve schématu tisku), PrintTicket pak objekt v aplikaci, který je vytvořen s tímto dokumentem, bude mít neznámý jako hodnotu PageOrientation vlastnosti.
PrintTicket I když tyto třídy nelze PrintCapabilities dědit, můžete rozšířit schéma tisku tak, aby rozpoznalo funkce tiskového zařízení, které nejsou v sadě PrintTicket nebo PrintCapabilities třídách. Další informace naleznete v tématu Postupy: Rozšíření schématu tisku a vytvoření nových tříd systému tisku.