Share via


PosPrinter.RecLineSpacing Property

2/27/2008

Gets or sets the spacing of each single-high print line. This includes both the printed line height and the white space between each pair of lines, that the application wants to use.

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

Syntax

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

/** @property */
public abstract void set_RecLineSpacing (int value)
public abstract function get RecLineSpacing () : int

public abstract function set RecLineSpacing (value : int)

Remarks

Depending on the printer and the current line spacing, a multi-high print line might exceed this value. Line spacing is expressed in the unit of measure indicated by the MapMode property setting.

If the specified spacing can be supported by the printer, the service object will set line spacing to this value. If the spacing cannot be supported, the spacing is set to the closest supported value.

When the RecLineChars or RecLineHeight properties are changed, RecLineSpacing is updated to the default line spacing for the selected width or height.

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

Accessing RecLineSpacing 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.RecLineHeight Property
PosPrinter.RecLineChars Property
PosPrinter.MapMode Property