Size Constructor
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the Size structure and assigns it an initial width and height.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- width
- Type: System.Double
The initial width of the instance of Size.
- height
- Type: System.Double
The initial height of the instance of Size.
| Exception | Condition |
|---|---|
| ArgumentException | width or height are less than 0. |
Show: