Share via


LineDisplayBase.CharacterSet Property

2/27/2008

Holds the character set for displaying 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

LineDisplayBase class verifies that the device has been opened, claimed, and enabled, then retrieves or sets the value of LineDisplayProperties.CharacterSet.

CharacterSet may be one of the following ranges or values:

Value

Meaning

Range 101 - 199

A device-specific character set that does not match a code page or the ASCII or Windows ANSI character sets.

Range 400 - 990

Code page; matches one of the standard values.

CharacterSetUnicode

The character set supports Unicode. The value of this constant is 997.

CharacterSetAscii

The ASCII character set, supporting the ASCII characters between 20-hex and 7F-hex. The value of this constant is 998.

CharacterSetAnsi

The Windows ANSI character set. The value of this constant is 999. This is exactly equivalent to the Windows code page 1252.

Range 1000 and higher

Windows code page; matches one of the standard values.

Accessing CharacterSet may cause a PosControlException to be thrown with the following ErrorCode:

Value

Meaning

Illegal

CharacterSet has been set to a value that doesn’t exist in the character sets listed for the CharacterSetList property.

CharacterSet is initialized to 0 (zero) by the LineDisplayProperties class.

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

LineDisplayBase Class
LineDisplayBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
LineDisplay.CharacterSetList Property
LineDisplay.CharacterSet Property