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

2/27/2008

Holds the number of characters that the application wants to print on a slip line.

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

Syntax

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

/** @property */
public void set_SlpLineChars (int value)
public override function get SlpLineChars () : int

public override function set SlpLineChars (value : int)

Remarks

PosPrinterBase class verifies that the device has been opened, claimed, and enabled, then retrieves or sets the value of PosPrinterProperties.SlpLineChars. A PosControlException exception with the following ErrorCode may be thrown when SlpLineChars is called:

Value

Meaning

Illegal

The SlpLineCharsList property is set to a value that is less than 1

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

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.SlpLineChars Property