Size.Width Property


Gets or sets the width of this instance of Size.

 property double Width { double get(); void set(double value); };
public double Width { get; set; }
member this.Width : double with get, set
Public Property Width As Double

Property Value

The Width of this instance of Size, in pixels. The default value is 0. The value cannot be negative.


Specified a value less than 0.


This struct represents the .NET projection of the Windows Runtime (WinRT) Size struct. For more information, see Size in the UWP API reference.

Applies to