Home Notices Documents Classes Download Others Rice
Classes  >  window  >  Left(real or int)
window class : Left(real or int) setter

Description

Sets the position of the window's left edge on the desktop screen. In device independent pixel.

Syntax

windowInstance.Left = left

Arguments

ClassNameDescription
real or intleftThe position of the window's left edge. In device independent pixel.

Return value

None

Sample code

1:

window w = new window();

2:

w.Left = 0.0;

Notes

It's a wrapper of the System.Windows.Window.Left property.

The setting value is the logical pixels.

This setter was modified to be able to set either real or int in the Ver 1.0.0.1.

The logical pixels is the device independent pixels (DIP).


How to convert from physical pixels to logical pixels is follows.

Horizontal : physical pixels / DpiScaleFactorX = logical pixels

Vertical : physical pixels / DpiScaleFactorY = logical pixels

Links for reference

Copyright © Rice All rights reserved.