Share via


PosPrinter.PageModeHorizontalPosition Property

2/27/2008

Gets or sets the horizontal start position offset within the print area for the print station specified by the PageModeStation property, expressed in the unit of measure specified by the MapMode property.

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

Syntax

'Declaration
Public Overridable Property PageModeHorizontalPosition As Integer
public virtual int PageModeHorizontalPosition { get; set; }
public:
virtual property int PageModeHorizontalPosition {
    int get ();
    void set (int value);
}
/** @property */
public int get_PageModeHorizontalPosition ()

/** @property */
public void set_PageModeHorizontalPosition (int value)
public function get PageModeHorizontalPosition () : int

public function set PageModeHorizontalPosition (value : int)

Remarks

The horizontal direction is the same as the direction specified by the PageModePrintDirection property. If the exact specified position cannot be supported, the service object will set the position to the closest supported value.

Note

Retrieving the value of PageModeHorizontalPosition returns the horizontal position offset specified by the last setting of this property and not the current position.

If PageModeStation property is set to an invalid value, PageModeHorizontalPosition is set to zero (0).

Setting PageModeHorizontalPosition may cause a PosControlException to be thrown with the following ErrorCode:

Value

Meaning

Illegal

The specified value is either less than zero or greater than the current page width minus 1.

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

PosPrinter Class
PosPrinter Members
Microsoft.PointOfService Namespace