編集

次の方法で共有


ErrorProvider.GetIconPadding(Control) Method

Definition

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

public:
 int GetIconPadding(System::Windows::Forms::Control ^ control);
public int GetIconPadding (System.Windows.Forms.Control control);
member this.GetIconPadding : System.Windows.Forms.Control -> int
Public Function GetIconPadding (control As Control) As Integer

Parameters

control
Control

The control to get the padding for.

Returns

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

Exceptions

control is null.

Remarks

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.

Applies to

See also