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

Gets or sets the size 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 Size Size { get; set; }
Visual Basic
<LCategoryAttribute(GetType(ControlsWin), "SizeAndPosition_c",  _
	"Size and position", LCategoryAttribute..::..enmLookUpOrder.ResourceFirst)> _
Public Property Size As Size
	Get
	Set
Visual C++
[LCategoryAttribute(typeof(ControlsWin), L"SizeAndPosition_c", L"Size and position", 
	LCategoryAttribute..::..enmLookUpOrder::ResourceFirst)]
public:
property Size Size {
	Size get ();
	void set (Size value);
}
F#
[<LCategoryAttribute(typeof(ControlsWin), "SizeAndPosition_c", "Size and position", 
    LCategoryAttribute..::..enmLookUpOrder.ResourceFirst)>]
member Size : Size with get, set
JScript
function get Size () : Size
function set Size (value : Size)

Field Value

New size of the window. Position will be unchanged

Return Value

Current size of the window

Exceptions

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

See Also