Export (0) Print
Expand All

ErrorProvider.GetIconPadding Method

Returns the amount of extra space to leave next to the error icon.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

[LocalizableAttribute(true)] 
public int GetIconPadding (
	Control control
)
/** @attribute LocalizableAttribute(true) */ 
public int GetIconPadding (
	Control control
)
LocalizableAttribute(true) 
public function GetIconPadding (
	control : Control
) : int

Parameters

control

The control to get the padding for.

Return Value

The number of pixels to leave between the icon and the control.

Exception typeCondition

ArgumentNullException

control is a null reference (Nothing in Visual Basic).

Many icons typically have extra space around their central images, so the padding value is only necessary if additional space is necessary. Padding values can be positive or negative. Negative values cause the icon to overlap the edge of the control. The default icon padding is 0.

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, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft