All Property
Collapse the table of content
Expand the table of content

Padding.All Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets the padding value for all the edges.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in

public int All { get; set; }
/** @property */
public int get_All ()

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

public function get All () : int

public function set All (value : int)

Property Value

The padding, in pixels, for all edges if the same; otherwise, -1.

When retrieving this property, if all the edges use the same padding value, then this common value is returned. Otherwise, -1 is returned to indicate that all the padding values are not equal.

Setting this value changes the Right, Left, Bottom, and Top properties.

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

© 2016 Microsoft