Export (0) Print
Expand All

Size.Width Property

Gets or sets the horizontal component of this Size.

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

public int Width { get; set; }
/** @property */
public int get_Width ()

/** @property */
public void set_Width (int value)

public function get Width () : int

public function set Width (value : int)

Not applicable.

Property Value

The horizontal component of this Size, 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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft