cete.dynamicpdf.printing.papersourcelist
PaperSourceList
- Namespace: ceTe.DynamicPDF.Printing
- Assemblies: ceTe.DynamicPDF.Printing.40.x64.dll, ceTe.DynamicPDF.Printing.40.x86.dll
Represents a list of paper sources.
public class PaperSourceList : IEnumerable, IEnumerable<PaperSource>
Public Class PaperSourceList
Implements IEnumerable, IEnumerable(Of PaperSource)
Inheritance: Object → PaperSourceList
Implements: IEnumerable, IEnumerable<PaperSource>
Licensing
This class is a DynamicPDF PrintManager feature. The following license is required for non-evaluation usage:
- DynamicPDF PrintManager for .NET
Examples
The following examples creates a print job, sets the paper source and prints the job.
Imports System
Imports ceTe.DynamicPDF.Printing
Module MyModule
Sub Main()
' Create a print job
Dim MyPrintJob As PrintJob = New PrintJob("PrinterName", "C:\MyDocument.pdf")
' Get the list of available paper sources for the printer
Dim MyPaperSourceList As PaperSourceList = MyPrintJob.Printer.PaperSources
' Set the paper source if it is supported by the printer
If (Not MyPaperSourceList.Automatic Is Nothing) Then
MyPrintJob.PrintOptions.PaperSource = MyPaperSourceList.Automatic
End If
' Print the job
MyPrintJob.Print()
End Sub
End Module
using System;
using ceTe.DynamicPDF.Printing;
class MyClass
{
static void Main()
{
// Create a print job
PrintJob printJob = new PrintJob("PrinterName", @"C:\MyDocument.pdf");
// Get the list of available paper sources for the printer
PaperSourceList paperSourceList = printJob.Printer.PaperSources;
// Set the paper source if it is supported by the printer
if (paperSourceList.Automatic != null)
{
printJob.PrintOptions.PaperSource = paperSourceList.Automatic;
}
// Print the job
printJob.Print();
}
}
Properties
Automatic
Gets the 'Automatic' paper source if it is specified by the printer.
public PaperSource Automatic { get; }
Public Property Automatic As PaperSource
Property Value
Cassette
Gets the 'Cassette' paper source if it is supported by the printer.
public PaperSource Cassette { get; }
Public Property Cassette As PaperSource
Property Value
Count
Gets the number of paper sources in the list.
public int Count { get; }
Public Property Count As Int32
Property Value
Envelope
Gets the 'Envelope' paper source if it is specified by the printer.
public PaperSource Envelope { get; }
Public Property Envelope As PaperSource
Property Value
EnvelopeManual
Gets the 'EnvelopeManual' paper source if it is specified by the printer.
public PaperSource EnvelopeManual { get; }
Public Property EnvelopeManual As PaperSource
Property Value
First
Gets the 'First' paper source if it is specified by the printer.
public PaperSource First { get; }
Public Property First As PaperSource
Property Value
FormSource
Gets the 'FormSource' paper source if it is specified by the printer.
public PaperSource FormSource { get; }
Public Property FormSource As PaperSource
Property Value
Item[Int32]
Gets a PaperSource object by index.
public PaperSource this[int index] { get; }
Public Property Item(index As Integer) As PaperSource
Property Value
Item[String]
Gets a PaperSource object by name.
public PaperSource this[string name] { get; }
Public Property Item(name As String) As PaperSource
Property Value
LargeCapacity
Gets the 'LargeCapacity' paper source if it is specified by the printer.
public PaperSource LargeCapacity { get; }
Public Property LargeCapacity As PaperSource
Property Value
LargeFormat
Gets the 'LargeFormat' paper source if it is specified by the printer.
public PaperSource LargeFormat { get; }
Public Property LargeFormat As PaperSource
Property Value
Last
Gets the 'Last' paper source if it is specified by the printer.
public PaperSource Last { get; }
Public Property Last As PaperSource
Property Value
Lower
Gets the 'Lower' paper source if it is specified by the printer.
public PaperSource Lower { get; }
Public Property Lower As PaperSource
Property Value
Manual
Gets the 'Manual' paper source if it is specified by the printer.
public PaperSource Manual { get; }
Public Property Manual As PaperSource
Property Value
Middle
Gets the 'Middle' paper source if it is specified by the printer.
public PaperSource Middle { get; }
Public Property Middle As PaperSource
Property Value
OnlyOne
Gets the 'OnlyOne' paper source if it is specified by the printer.
public PaperSource OnlyOne { get; }
Public Property OnlyOne As PaperSource
Property Value
SmallFormat
Gets the 'SmallFormat' paper source if it is specified by the printer.
public PaperSource SmallFormat { get; }
Public Property SmallFormat As PaperSource
Property Value
Tractor
Gets the 'Tractor' paper source if it is specified by the printer.
public PaperSource Tractor { get; }
Public Property Tractor As PaperSource
Property Value
Upper
Gets the 'Upper' paper source if it is specified by the printer.
public PaperSource Upper { get; }
Public Property Upper As PaperSource
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 .