PosPrinterBase.SlpLineHeight Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Holds the slip print-line height, expressed in the unit of measure indicated by the MapMode property setting, that the application wants to use.

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

Syntax

'Declaration
Public Overrides Property SlpLineHeight As Integer
public override int SlpLineHeight { get; set; }
public:
virtual property int SlpLineHeight {
    int get () override;
    void set (int value) override;
}
/** @property */
public int get_SlpLineHeight ()

/** @property */
public void set_SlpLineHeight (int value)
public override function get SlpLineHeight () : int

public override function set SlpLineHeight (value : int)

Remarks

PosPrinterBase class verifies that the device has been opened, claimed, and enabled, then retrieves or sets the value of PosPrinterProperties.SlpLineHeight. The SlpLineHeight property may cause an exception to be thrown under the following conditions, with the specified ErrorCodes:

Value

Meaning

Illegal

The SlpLineHeight property is set to a value that is less than 0 (zero.)

SlpLineHeight is initialized to 0 (zero) by the PosPrinterProperties class. The service object should update SlpLineHeight in its Open method to the printer’s default line height.

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

PosPrinterBase Class
PosPrinterBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PosPrinter.SlpLineHeight Property