ImageGear .NET v25.1 - Updated
AddOption(String) Method




ImageGear.Formats.Pdf Assembly > ImageGear.Formats.PDF.Forms Namespace > ListBox Class > AddOption Method : AddOption(String) Method
The text to display in the new option.
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

Reference

ListBox Class
ListBox Members
Overload List