Share via


PosPrinter.SlpLineHeight Property

2/27/2008

Gets or sets 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
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

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

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

public abstract function set SlpLineHeight (value : int)

Remarks

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

When the SlpLineChars property is changed, SlpLineHeight is updated to the default line height for the selected width.

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

Accessing SlpLineHeight 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.SlpLineChars Property
PosPrinter.MapMode Property