ResolutionList
Represents a list of resolutions.
public class ResolutionList : IEnumerable, IEnumerable<Resolution>
Public Class ResolutionList
Implements IEnumerable, IEnumerable(Of Resolution)
Inheritance: ObjectResolutionList
Implements: IEnumerable, IEnumerable<Resolution>
Licensing Info
This class is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Examples
The following examples creates a print job, sets resolution to 600 dpi if it is supported by the printer 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 resolutions for the printer
Dim MyResolutions As ResolutionList = MyPrintJob.Printer.Resolutions
' Set the resolution to 600 dpi if it is supported by the printer
If (Not MyResolutions(600, 600) Is Nothing) Then
MyPrintJob.PrintOptions.Resolution = MyResolutions(600, 600)
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 resolutions for the printer
ResolutionList resolutions = printJob.Printer.Resolutions;
// Get the resolution to 600 dpi if it is supported by the printer
if (resolutions.GetResolution(600,600) != null)
{
printJob.PrintOptions.Resolution = resolutions[600, 600];
}
// Print the job
printJob.Print();
}
}
Properties
Count | Gets the value indicating the number of printer resolutions in the list. |
Draft | Gets the Draft quality based resolution setting. |
High | Gets the High quality based resolution setting. |
Item[Int32] | Gets a printer resolution by index. |
Low | Gets the Low quality based resolution setting. |
Medium | Gets the Medium quality based resolution setting. |
Methods
Equals(Object) | Determines whether the specified Object is equal to the current Object . (Inherited from Object) |
GetEnumerator() | Returns an enumerator that iterates through a collection. |
GetHashCode() | Serves as a hash function for a particular type. (Inherited from Object) |
GetResolution(Int32, Int32) | Gets a printer resolution by name. |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
ToString() | Returns a String that represents the current Object . (Inherited from Object) |