cete.dynamicpdf.printing.pageorientation
PageOrientation
- Namespace: ceTe.DynamicPDF.Printing
- Assemblies: ceTe.DynamicPDF.Printing.40.x64.dll, ceTe.DynamicPDF.Printing.40.x86.dll
Represents the page orientation.
public class PageOrientation
Public Class PageOrientation
Inheritance: Object → PageOrientation
Examples
The following examples creates a print job, sets the orientation and prints the job.
Imports System
Imports ceTe.DynamicPDF.Printing
Module MyModule
Sub Main()
' Create a print job containing the first four pages of the PDF
Dim MyPrintJob As PrintJob = New PrintJob("PrinterName", "C:\MyDocument.pdf", 1, 4)
' Set the orientation for the print job
MyPrintJob.PrintOptions.Orientation.Type = OrientationType.Landscape
' Print the job
MyPrintJob.Print()
End Sub
End Module
using System;
using ceTe.DynamicPDF.Printing;
class MyClass
{
static void Main()
{
// Create a print job containing the first four pages of the PDF
PrintJob printJob = new PrintJob("PrinterName", @"C:\MyDocument.pdf", 1, 4);
// Set the orientation for the print job
printJob.PrintOptions.Orientation.Type = OrientationType.Landscape;
// Print the job
printJob.Print();
}
}
Properties
Rotated
Gets or sets the value indicating if the page is to be rotated 180 degrees.
public bool Rotated { get; set; }
Public Property Rotated As Boolean
Property Value
Type
Gets or sets the orientation type for the page to be printed.
public OrientationType Type { get; set; }
Public Property Type As OrientationType
Property Value
Methods
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .