NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ErrorProvider.GetIconPadding

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

[Visual Basic]
Public Function GetIconPadding( _
   ByVal control As RichControl _
) As Integer
[C#]
public int GetIconPadding(
   RichControl control
);
[C++]
public: int GetIconPadding(
   RichControl* control
);
[JScript]
public function GetIconPadding(
   control : RichControl
) : int;

Parameters

control
Control to get the padding for.

Return Value

The number of pixels to leave between the icon and the control. Note that many icons naturally have extra space around thier central image, so the padding value is only necessary if additonal space is necessary. Also, the padding can be negative so the icon overlaps the edge of the control.

See Also

ErrorProvider Class | ErrorProvider Members | System.WinForms Namespace | SetIconPadding