Xceed Grid for WinForms v4.3 Documentation
Xceed.Validation.v1.3 Assembly / Xceed.Validation Namespace / ValidationProvider Class / GetIconPadding Method
The control to get the padding for.


In This Topic
    GetIconPadding Method
    In This Topic
    Returns the amount of extra space to leave next to the error icon.
    Syntax
    '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.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also