Share via


ClaimedReceiptPrinter Class

Definition

Represents a receipt printer station that has been claimed for use.

public ref class ClaimedReceiptPrinter sealed
public ref class ClaimedReceiptPrinter sealed : ICommonClaimedPosPrinterStation
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ClaimedReceiptPrinter final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ClaimedReceiptPrinter final : ICommonClaimedPosPrinterStation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ClaimedReceiptPrinter
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ClaimedReceiptPrinter : ICommonClaimedPosPrinterStation
Public NotInheritable Class ClaimedReceiptPrinter
Public NotInheritable Class ClaimedReceiptPrinter
Implements ICommonClaimedPosPrinterStation
Inheritance
Object Platform::Object IInspectable ClaimedReceiptPrinter
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

To get a ClaimedReceiptPrinter object, use the ClaimedPosPrinter.Receipt property.

Properties

CharactersPerLine

Gets or sets the number of characters the receipt printer station can print per line of text.

ColorCartridge

Gets or sets the color cartridge that the receipt printer station should use when it prints.

IsCartridgeEmpty

Gets whether the cartridge of the receipt printer station is currently out of ink or toner.

IsCartridgeRemoved

Gets whether the cartridge of the receipt printer station is currently removed.

IsCoverOpen

Gets whether the cover of the receipt printer station is currently open.

IsHeadCleaning

Gets whether the receipt printer station is currently cleaning its print head.

IsLetterQuality

Gets or sets whether the receipt printer station prints with high quality or high speed.

IsPaperEmpty

Gets whether the receipt printer station needs paper.

IsPaperNearEnd

Gets whether the receipt printer station is almost out of paper.

IsReadyToPrint

Gets whether the receipt printer station is on and accepting print jobs.

LineHeight

Gets or sets the current height of the printed line for the receipt printer station, in the units that the ClaimedPosPrinter.MapMode property specifies.

LineSpacing

Gets or sets the spacing of each single-high print line for the receipt printer station, in the units that the ClaimedPosPrinter.MapMode property specifies. This spacing includes both the height of printed line and of the white space between each pair of lines.

LinesToPaperCut

Gets the number of lines that must be advanced before cutting the receipt paper.

LineWidth

Gets the current width of the printed line for the receipt printer station, in the units that the ClaimedPosPrinter.MapMode property specifies.

PageSize

Gets the size of paper that the claimed receipt printer station currently uses.

PrintArea

Gets the print area for the receipt printer station, expressed in the unit of measurement that the ClaimedPosPrinter.MapMode property specifies.

SidewaysMaxChars

Gets the maximum number of characters that the receipt printer station can print on each line in sideways mode.

SidewaysMaxLines

Gets the maximum number of lines that the receipt printer station can print in sideways mode.

Methods

CreateJob()

Creates a new print job for the receipt printer station.

ValidateData(String)

Determines whether a data sequence, possibly including one or more escape sequences, is valid for the receipt printer station, before you use that data sequence when you call the ReceiptPrintJob.Print and ReceiptPrintJob.ExecuteAsync methods.

Applies to

See also