Share via


PosPrinterBase.RecLineChars Property

2/27/2008

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

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

Syntax

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

/** @property */
public void set_RecLineChars (int value)
public override function get RecLineChars () : int

public override function set RecLineChars (value : int)

Remarks

PosPrinterBase class verifies that the device has been opened, claimed, and enabled, then retrieves or sets the value of PosPrinterProperties.RecLineChars. The PosPrinterBase class may throw PosControlException exceptions under the following conditions, with the specified ErrorCodes:

Value

Meaning

Illegal

The width value specified by this property is greater than the maximum width specified in the RecLineCharsList property, or is than 1.

RecLineChars is initialized to 0 (zero) by the PosPrinterProperties class. The service object should update RecLineChars 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.RecLineChars Property