Skip to main content

ResolutionList

Version: 4.0

cete.dynamicpdf.printing.resolutionlist

ResolutionList​

Represents a list of resolutions.

public class ResolutionList : IEnumerable, IEnumerable&ltResolution>
Public Class ResolutionList
Implements IEnumerable, IEnumerable(Of Resolution)

Inheritance: Object → ResolutionList

Implements: IEnumerable, IEnumerable&ltResolution>

Licensing Info​

This class is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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.

public int Count { get; }
Public Property Count As Int32

Property Value​

Int32

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Draft​

Gets the Draft quality based resolution setting.

public static Resolution Draft { get; }
Public Shared Property Draft As Resolution

Property Value​

Resolution

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

High​

Gets the High quality based resolution setting.

public static Resolution High { get; }
Public Shared Property High As Resolution

Property Value​

Resolution

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Item[Int32]​

Gets a printer resolution by index.

public Resolution this[int index] { get; }
Public Property Item(index As Integer) As Resolution

Property Value​

Resolution

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Low​

Gets the Low quality based resolution setting.

public static Resolution Low { get; }
Public Shared Property Low As Resolution

Property Value​

Resolution

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Medium​

Gets the Medium quality based resolution setting.

public static Resolution Medium { get; }
Public Shared Property Medium As Resolution

Property Value​

Resolution

Licensing Info​

This property is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

Licensing Info​

This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

GetEnumerator()​

Returns an enumerator that iterates through a collection.

public IEnumerator&ltResolution> GetEnumerator()
Function GetEnumerator() As IEnumerator(Of Resolution)

Returns​

enumerator to the ResolutionList

Licensing Info​

This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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 .

Licensing Info​

This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

GetResolution(Int32, Int32)​

Gets a printer resolution by name.

public Resolution GetResolution(int horizontalDpi, int verticalDpi)
Function GetResolution(horizontalDpi As Integer, verticalDpi As Integer) As Resolution

Parameters​

The horizontal DPI of the resolution to be returned.

The vertical DPI of the resolution to be returned.

Returns​

Licensing Info​

This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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.

Licensing Info​

This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

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 .

Licensing Info​

This method is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF.Printing