ImageGear v26.3 - Updated
ImageGear.Formats.Pdf Assembly / ImageGear.Formats.PDF.Forms Namespace / ListBox Class / AddOption Method / AddOption(String) Method
The text to display in the new option.




In This Topic
    AddOption(String) Method
    In This Topic
    Adds an option to the ListBox field.
    Syntax
    'Declaration
     
    Public Overloads Function AddOption( _
       ByVal optionLabel As String _
    ) As ChoiceOption
    'Usage
     
    Dim instance As ListBox
    Dim optionLabel As String
    Dim value As ChoiceOption
     
    value = instance.AddOption(optionLabel)
    public ChoiceOption AddOption( 
       string optionLabel
    )
    public: ChoiceOption* AddOption( 
       string* optionLabel
    ) 
    public:
    ChoiceOption^ AddOption( 
       String^ optionLabel
    ) 

    Parameters

    optionLabel
    The text to display in the new option.

    Return Value

    A newly-added ChoiceOption.
    See Also