PrintTicketConverter PrintTicketConverter PrintTicketConverter PrintTicketConverter Class

定義

將 Managed PrintTicket 物件轉換為 Unmanaged 圖形裝置介面 (GDI) DEVMODE 結構,反之亦然。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
繼承
PrintTicketConverterPrintTicketConverterPrintTicketConverterPrintTicketConverter
屬性
實作

備註

這個類別的方法都不會驗證PrintTicketNone of the methods of this class will validate the PrintTicket. 若要驗證它,請使用MergeAndValidatePrintTicketTo validate it, use MergeAndValidatePrintTicket.

建構函式

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

初始化的新執行個體PrintTicketConverter指定印表機的類別。Initializes a new instance of the PrintTicketConverter class for the specified printer.

屬性

MaxPrintSchemaVersion MaxPrintSchemaVersion MaxPrintSchemaVersion MaxPrintSchemaVersion

取得 PrintTicketConverter 可支援的列印結構描述版本上限。Gets the maximum Print Schema version that PrintTicketConverter can support.

方法

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

將指定的 DEVMODE 結構轉換為 Managed 程式碼 PrintTicketConverts the specified DEVMODE structure to a managed code PrintTicket.

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

將指定的 DEVMODE 結構轉換為具有指定範圍的 Managed 程式碼 PrintTicketConverts 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)

將指定的 Managed PrintTicket 轉換為 Unmanaged DEVMODE 結構,而這個結構以 BaseDevModeType 所識別的 DEVMODE 結構為基礎。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)

將具有指定範圍的指定 Managed 程式碼 PrintTicket 轉換成 Unmanaged DEVMODE 結構,而這個結構以 BaseDevModeType 所識別的 DEVMODE 結構為基礎。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()

釋放 PrintTicketConverter 使用的資源。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()

取得目前執行個體的 TypeGets the Type of the current instance.

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

建立目前 Object 的淺層複本 (Shallow Copy)。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)

明確介面實作

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

釋放 PrintTicketConverter 類別目前的執行個體所使用的全部資源。Releases all resources used by the current instance of the PrintTicketConverter class.

適用於