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

Description

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

Syntax

windowInstance.Top = top

Arguments

ClassNameDescription
real or inttopThe position of the window's top edge. In device independent pixel.

Return value

None

Sample code

1:

window w = new window();

2:

w.Top = 0.0;

Notes

It's a wrapper of the System.Windows.Window.Top 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.