'Declaration <DefaultValueAttribute(0)> <DescriptionAttribute("Space to leave between the specified control and the icon.")> <CategoryAttribute("Behavior")> Public Function GetIconPadding( _ ByVal inputControl As Control _ ) As Integer
'Usage Dim instance As ValidationProvider Dim inputControl As Control Dim value As Integer value = instance.GetIconPadding(inputControl)
[DefaultValue(0)] [Description("Space to leave between the specified control and the icon.")] [Category("Behavior")] public int GetIconPadding( Control inputControl )
Parameters
- inputControl
- The control to get the padding for.
Return Value
The number of pixels to leave between the icon and the control.
Many icons normally 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.