Share via


PosPrinter.RecLineHeight Property

2/27/2008

Gets or sets the receipt print line height, expressed in the unit of measure indicated by the MapMode property setting, that the application wants to use.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public MustOverride Property RecLineHeight As Integer
public abstract int RecLineHeight { get; set; }
public:
virtual property int RecLineHeight {
    int get () abstract;
    void set (int value) abstract;
}
/** @property */
public abstract int get_RecLineHeight ()

/** @property */
public abstract void set_RecLineHeight (int value)
public abstract function get RecLineHeight () : int

public abstract function set RecLineHeight (value : int)

Remarks

If the specified line height can be supported with the current character width, the service object sets line height to this value. If the exact height cannot be supported, the height is set to the closest supported value.

When the RecLineChars property is changed, RecLineHeight is updated to the default line height for the selected width.

The service object sets RecLineHeight to the printer’s default line height when the device is first enabled following the Open method.

Accessing RecLineHeight may cause a PosControlException to be thrown with the following ErrorCode:

Value

Meaning

Illegal

The number of characters specified is less than 0 (zero).

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

PosPrinter Class
PosPrinter Members
Microsoft.PointOfService Namespace
PosPrinter.RecLineChars Property