[This is preliminary documentation and is subject to change.]
Gets or sets location of the window
Namespace: Tools.WindowsT.NativeTAssembly: 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 Point Location { get; set; } |
| Visual Basic |
|---|
<LCategoryAttribute(GetType(ControlsWin), "SizeAndPosition_c", _ "Size and position", LCategoryAttribute..::..enmLookUpOrder.ResourceFirst)> _ Public Property Location As Point Get Set |
| Visual C++ |
|---|
[LCategoryAttribute(typeof(ControlsWin), L"SizeAndPosition_c", L"Size and position", LCategoryAttribute..::..enmLookUpOrder::ResourceFirst)] public: property Point Location { Point get (); void set (Point value); } |
| F# |
|---|
[<LCategoryAttribute(typeof(ControlsWin), "SizeAndPosition_c", "Size and position", LCategoryAttribute..::..enmLookUpOrder.ResourceFirst)>] member Location : Point with get, set |
| JScript |
|---|
function get Location () : Point function set Location (value : Point) |
Field Value
New position of top left corner of window. Size will ne unchanged.Return Value
Current position of window top left corner
Remarks
For top-level windows the location is in screen coordinates, for windows with Parent in parent' coordinates.
Exceptions
| Exception | Condition |
|---|---|
| Tools.API..::..Win32APIException | Setting or obtaining of window's rectangle failed, ie. Handle is invalid |