Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / IControlFormat Interface / AddItem Method
The text to be added.
The position of the new entry. If the list has fewer entries than the specified index, blank items from the end of the list are added to the specified position. If this argument is omitted, the item is appended to the existing list.


In This Topic
    AddItem Method
    In This Topic
    Adds an item to a list box or a combo box.
    Syntax
    'Declaration
     
    
    Sub AddItem( _
       ByVal text As String, _
       Optional ByVal index As Integer _
    ) 
    'Usage
     
    
    Dim instance As IControlFormat
    Dim text As String
    Dim index As Integer
     
    instance.AddItem(text, index)
    void AddItem( 
       string text,
       int index
    )

    Parameters

    text
    The text to be added.
    index
    The position of the new entry. If the list has fewer entries than the specified index, blank items from the end of the list are added to the specified position. If this argument is omitted, the item is appended to the existing list.
    See Also