Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / CustomIconContainer Class / AddIcon Method
Name of the icon object
The icon object


In This Topic
    AddIcon Method
    In This Topic
    Adds an icon object into a container.
    Syntax
    'Declaration
     
    
    Public Function AddIcon( _
       ByVal name As String, _
       ByVal icon As Icon _
    ) As Integer
    'Usage
     
    
    Dim instance As CustomIconContainer
    Dim name As String
    Dim icon As Icon
    Dim value As Integer
     
    value = instance.AddIcon(name, icon)
    public int AddIcon( 
       string name,
       Icon icon
    )

    Parameters

    name
    Name of the icon object
    icon
    The icon object

    Return Value

    An int32 value that specifies the index of the object in the container. Returns -1 if there is an icon with the same name already in the container; in this case, the new icon object is not added.
    See Also