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

2/27/2008

Holds a numeric value indicating the character set the application wants to use for printing characters.

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

Syntax

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

/** @property */
public void set_CharacterSet (int value)
public override function get CharacterSet () : int

public override function set CharacterSet (value : int)

Remarks

PosPrinterBase class verifies that the device has been opened, claimed, and enabled, then retrieves or sets the value of PosPrinterProperties.CharacterSet. If the application sets CharacterSet to a value that doesn’t exist in the CharacterSetList property array, PosPrinterProperties may throw PosControlException exceptions with the following values:

Value

Meaning

Illegal

The service object has set the CharacterSet property to a value that doesn't exist in the CharacterSetList array.

CharacterSet is initialized to -1 by the PosPrinterProperties class. The service object should update CharacterSet to an appropriate value in its Open method.

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