ImageGear PDF v25.2 - Updated
AddOption(String,String) Method




ImageGear.Formats.Pdf Assembly > ImageGear.Formats.PDF.Forms Namespace > ListBox Class > AddOption Method : AddOption(String,String) Method
The text to display in the option.
The export value of the option.
Adds an option to the ListBox field.
Syntax
'Declaration
 
Public Overloads Function AddOption( _
   ByVal optionLabel As String, _
   ByVal exportValue As String _
) As ChoiceOption
'Usage
 
Dim instance As ListBox
Dim optionLabel As String
Dim exportValue As String
Dim value As ChoiceOption
 
value = instance.AddOption(optionLabel, exportValue)
public ChoiceOption AddOption( 
   string optionLabel,
   string exportValue
)
public: ChoiceOption* AddOption( 
   string* optionLabel,
   string* exportValue
) 
public:
ChoiceOption^ AddOption( 
   String^ optionLabel,
   String^ exportValue
) 

Parameters

optionLabel
The text to display in the option.
exportValue
The export value of the option.

Return Value

A newly-added ChoiceOption.
See Also

Reference

ListBox Class
ListBox Members
Overload List

Is this page helpful?
Yes No
Thanks for your feedback.