[This is preliminary documentation and is subject to change.]

Gets or sets y coordinate of top edge of the window.

Namespace: Tools.WindowsT.NativeT
Assembly: Tools.Win (in Tools.Win.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
[LCategoryAttribute(typeof(ControlsWin), "SizeAndPosition_c", "Size and position", 
	LCategoryAttribute..::..enmLookUpOrder.ResourceFirst)]
public int Top { get; set; }
Visual Basic
<LCategoryAttribute(GetType(ControlsWin), "SizeAndPosition_c",  _
	"Size and position", LCategoryAttribute..::..enmLookUpOrder.ResourceFirst)> _
Public Property Top As Integer
	Get
	Set
Visual C++
[LCategoryAttribute(typeof(ControlsWin), L"SizeAndPosition_c", L"Size and position", 
	LCategoryAttribute..::..enmLookUpOrder::ResourceFirst)]
public:
property int Top {
	int get ();
	void set (int value);
}
F#
[<LCategoryAttribute(typeof(ControlsWin), "SizeAndPosition_c", "Size and position", 
    LCategoryAttribute..::..enmLookUpOrder.ResourceFirst)>]
member Top : int with get, set
JScript
function get Top () : int
function set Top (value : int)

Field Value

New y coordinate of top edge of the window

Return Value

Current y coordinate of top edge of the window

Remarks

In some multi-monitor configurations the top edge of desktop can be negative number. In such case Top can be also negative and it does not necesarilly mean thet the window is outside of the desktop. For top-level windows the location is in screen coordinates, for windows with Parent in parent' coordinates.

Exceptions

ExceptionCondition
Tools.API..::..Win32APIExceptionSetting or obtaining of window's rectangle failed, ie. Handle is invalid

See Also