Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Width Property
Collapse the table of content
Expand the table of content

Size.Width Property

Gets or sets the horizontal component of this Size structure.

Namespace:  System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public int Width { get; set; }

Property Value

Type: System.Int32
The horizontal component of this Size structure, typically measured in pixels.

The unit for the Height and Width of the Size structure depend on the PageUnit and PageScale settings for the Graphics object used to draw.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft