/
PageOrientation.xml
184 lines (173 loc) · 10.3 KB
/
PageOrientation.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<Type Name="PageOrientation" FullName="System.Printing.PageOrientation">
<TypeSignature Language="C#" Value="public enum PageOrientation" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed PageOrientation extends System.Enum" />
<TypeSignature Language="DocId" Value="T:System.Printing.PageOrientation" />
<TypeSignature Language="VB.NET" Value="Public Enum PageOrientation" />
<TypeSignature Language="F#" Value="type PageOrientation = " />
<TypeSignature Language="C++ CLI" Value="public enum class PageOrientation" />
<AssemblyInfo>
<AssemblyName>ReachFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Docs>
<summary>Specifies how pages of content are oriented on print media.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the values of this type primarily for these purposes:
- As members of the <xref:System.Printing.PrintCapabilities.PageOrientationCapability%2A> collection, which is a property of <xref:System.Printing.PrintCapabilities>, these values indicate the orientation types that a printer supports.
- As the value of the <xref:System.Printing.PrintTicket.PageOrientation%2A> property of a <xref:System.Printing.PrintTicket>, the value directs the printer to use a particular orientation.
The **Unknown** value is never used in properties of <xref:System.Printing.PrintCapabilities> objects.
You should never set a <xref:System.Printing.PrintTicket> property to **Unknown**. If some other <xref:System.Printing.PrintTicket> producing application has created a *PrintTicket document* that sets the orientation feature to an unrecognized option (that is, an option that is not defined in the [Print Schema](https://go.microsoft.com/fwlink/?LinkId=186397)), then a <xref:System.Printing.PrintTicket> object in your application that is constructed with that document will have **Unknown** as the value of the <xref:System.Printing.PrintTicket.PageOrientation%2A> property.
Although the <xref:System.Printing.PrintTicket> and <xref:System.Printing.PrintCapabilities> classes cannot be inherited, you can extend the [Print Schema](https://go.microsoft.com/fwlink/?LinkId=186397) to recognize print device features that are not accounted for in the <xref:System.Printing.PrintTicket> or <xref:System.Printing.PrintCapabilities> classes. For more information see [How to: Extend the Print Schema and Create New Print System Classes](https://docs.microsoft.com/previous-versions/aa970573(v=vs.100)).
## Examples
The following example shows how to use this enumeration to set <xref:System.Printing.PrintTicket> values.
:::code language="csharp" source="~/snippets/csharp/System.Printing/LocalPrintServer/Overview/XpsPrintHelper.cs" id="Snippetoutputcolorandpageorientation":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/XpsPrint/visualbasic/xpsprinthelper.vb" id="Snippetoutputcolorandpageorientation":::
]]></format>
</remarks>
<altmember cref="T:System.Printing.PrintCapabilities" />
<altmember cref="T:System.Printing.PrintTicket" />
</Docs>
<Members>
<Member MemberName="Landscape">
<MemberSignature Language="C#" Value="Landscape" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Printing.PageOrientation Landscape = int32(1)" />
<MemberSignature Language="DocId" Value="F:System.Printing.PageOrientation.Landscape" />
<MemberSignature Language="VB.NET" Value="Landscape" />
<MemberSignature Language="F#" Value="Landscape = 1" Usage="System.Printing.PageOrientation.Landscape" />
<MemberSignature Language="C++ CLI" Value="Landscape" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>ReachFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Printing.PageOrientation</ReturnType>
</ReturnValue>
<MemberValue>1</MemberValue>
<Docs>
<summary>Content of the imageable area is rotated on the page 90 degrees counterclockwise from standard (portrait) orientation.</summary>
</Docs>
</Member>
<Member MemberName="Portrait">
<MemberSignature Language="C#" Value="Portrait" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Printing.PageOrientation Portrait = int32(2)" />
<MemberSignature Language="DocId" Value="F:System.Printing.PageOrientation.Portrait" />
<MemberSignature Language="VB.NET" Value="Portrait" />
<MemberSignature Language="F#" Value="Portrait = 2" Usage="System.Printing.PageOrientation.Portrait" />
<MemberSignature Language="C++ CLI" Value="Portrait" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>ReachFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Printing.PageOrientation</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>Standard orientation.</summary>
</Docs>
</Member>
<Member MemberName="ReverseLandscape">
<MemberSignature Language="C#" Value="ReverseLandscape" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Printing.PageOrientation ReverseLandscape = int32(3)" />
<MemberSignature Language="DocId" Value="F:System.Printing.PageOrientation.ReverseLandscape" />
<MemberSignature Language="VB.NET" Value="ReverseLandscape" />
<MemberSignature Language="F#" Value="ReverseLandscape = 3" Usage="System.Printing.PageOrientation.ReverseLandscape" />
<MemberSignature Language="C++ CLI" Value="ReverseLandscape" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>ReachFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Printing.PageOrientation</ReturnType>
</ReturnValue>
<MemberValue>3</MemberValue>
<Docs>
<summary>Content of the imageable area is rotated on the page 90 degrees clockwise from standard (portrait) orientation.</summary>
</Docs>
</Member>
<Member MemberName="ReversePortrait">
<MemberSignature Language="C#" Value="ReversePortrait" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Printing.PageOrientation ReversePortrait = int32(4)" />
<MemberSignature Language="DocId" Value="F:System.Printing.PageOrientation.ReversePortrait" />
<MemberSignature Language="VB.NET" Value="ReversePortrait" />
<MemberSignature Language="F#" Value="ReversePortrait = 4" Usage="System.Printing.PageOrientation.ReversePortrait" />
<MemberSignature Language="C++ CLI" Value="ReversePortrait" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>ReachFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Printing.PageOrientation</ReturnType>
</ReturnValue>
<MemberValue>4</MemberValue>
<Docs>
<summary>Content of the imageable area is upside down relative to standard (portrait) orientation.</summary>
</Docs>
</Member>
<Member MemberName="Unknown">
<MemberSignature Language="C#" Value="Unknown" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Printing.PageOrientation Unknown = int32(0)" />
<MemberSignature Language="DocId" Value="F:System.Printing.PageOrientation.Unknown" />
<MemberSignature Language="VB.NET" Value="Unknown" />
<MemberSignature Language="F#" Value="Unknown = 0" Usage="System.Printing.PageOrientation.Unknown" />
<MemberSignature Language="C++ CLI" Value="Unknown" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>ReachFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Printing.PageOrientation</ReturnType>
</ReturnValue>
<MemberValue>0</MemberValue>
<Docs>
<summary>The feature (whose options are represented by this enumeration) is set to an option not defined in the <see href="https://docs.microsoft.com/windows/desktop/printdocs/printschema">Print Schema</see>.</summary>
</Docs>
</Member>
</Members>
</Type>