Share via


LineDisplayBase.MaximumX Property

2/27/2008

Contains the maximum number of horizontal pixels supported by the device.

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

Syntax

'Declaration
Public Overrides ReadOnly Property MaximumX As Integer
public override int MaximumX { get; }
public:
virtual property int MaximumX {
    int get () override;
}
/** @property */
public int get_MaximumX ()
public override function get MaximumX () : int

Remarks

Otherwise, MaximumX contains the maximum number of horizontal pixels supported by the device. It must be less than 65,536. Dividing MaximumX by the DeviceColumns property value gives the number of pixels required for each character.

The service object may update the MaximumX property when the ScreenMode property is changed.

LineDisplayBase class verifies that the device has been opened, then retrieves the value of LineDisplayProperties.MaximumX, which is the MaximumX value currently stored by the LineDisplayScreenMode class for the current Screen Mode. If the CapBitmap property is set to false, the MaximumX property returns 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

LineDisplayBase Class
LineDisplayBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
LineDisplay.MaximumX Property
LineDisplayScreenMode