PrintTicketConverter PrintTicketConverter PrintTicketConverter PrintTicketConverter Class

Definition

Converts managed PrintTicket objects to unmanaged Graphics Device Interface (GDI) DEVMODE structures, and vice versa.

public ref class PrintTicketConverter sealed : IDisposable
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class PrintTicketConverter : IDisposable
type PrintTicketConverter = class
    interface IDisposable
Public NotInheritable Class PrintTicketConverter
Implements IDisposable
Inheritance
PrintTicketConverterPrintTicketConverterPrintTicketConverterPrintTicketConverter
Attributes
Implements

Remarks

None of the methods of this class will validate the PrintTicket. To validate it, use MergeAndValidatePrintTicket.

Constructors

PrintTicketConverter(String, Int32) PrintTicketConverter(String, Int32) PrintTicketConverter(String, Int32) PrintTicketConverter(String, Int32)

Initializes a new instance of the PrintTicketConverter class for the specified printer.

Properties

MaxPrintSchemaVersion MaxPrintSchemaVersion MaxPrintSchemaVersion MaxPrintSchemaVersion

Gets the maximum Print Schema version that PrintTicketConverter can support.

Methods

ConvertDevModeToPrintTicket(Byte[]) ConvertDevModeToPrintTicket(Byte[]) ConvertDevModeToPrintTicket(Byte[]) ConvertDevModeToPrintTicket(Byte[])

Converts the specified DEVMODE structure to a managed code PrintTicket.

ConvertDevModeToPrintTicket(Byte[], PrintTicketScope) ConvertDevModeToPrintTicket(Byte[], PrintTicketScope) ConvertDevModeToPrintTicket(Byte[], PrintTicketScope) ConvertDevModeToPrintTicket(Byte[], PrintTicketScope)

Converts the specified DEVMODE structure to a managed code PrintTicket that has the specified scope.

ConvertPrintTicketToDevMode(PrintTicket, BaseDevModeType) ConvertPrintTicketToDevMode(PrintTicket, BaseDevModeType) ConvertPrintTicketToDevMode(PrintTicket, BaseDevModeType) ConvertPrintTicketToDevMode(PrintTicket, BaseDevModeType)

Converts the specified managed PrintTicket to an unmanaged DEVMODE structure that is based on the DEVMODE structure identified by the BaseDevModeType.

ConvertPrintTicketToDevMode(PrintTicket, BaseDevModeType, PrintTicketScope) ConvertPrintTicketToDevMode(PrintTicket, BaseDevModeType, PrintTicketScope) ConvertPrintTicketToDevMode(PrintTicket, BaseDevModeType, PrintTicketScope) ConvertPrintTicketToDevMode(PrintTicket, BaseDevModeType, PrintTicketScope)

Converts the specified managed code PrintTicket with the specified scope, into an unmanaged DEVMODE structure that is based on the DEVMODE structure identified by the BaseDevModeType.

Dispose() Dispose() Dispose() Dispose()

Releases the resources used by the PrintTicketConverter.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

Releases all resources used by the current instance of the PrintTicketConverter class.

Applies to