Rect.Width Rect.Width Rect.Width Rect.Width Property

Definition

Gets or sets the width of the rectangle.

public:
 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

A value that represents the width of the rectangle in pixels. The default is 0.

Exceptions

Remarks

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

For more information and examples of this member, see Rect.Width in the .NET Framework API reference. (Examples show WPF usage and might not translate directly to UWP XAML.)

Applies to