ImageGear .NET - Updated October 2, 2018
AddOption(String,String) Method




ImageGear24.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)

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