ImageGear PDF v25.1 - Updated
DefaultIndex Property




ImageGear.Formats.Pdf Assembly > ImageGear.Formats.PDF.Forms Namespace > ChoiceField Class : DefaultIndex Property
Gets or sets a value indicating the default index of the choice field.
Syntax
'Declaration
 
Public Property DefaultIndex As Integer
'Usage
 
Dim instance As ChoiceField
Dim value As Integer
 
instance.DefaultIndex = value
 
value = instance.DefaultIndex
public int DefaultIndex {get; set;}
public: __property int get_DefaultIndex();
public: __property void set_DefaultIndex( 
   int value
);
public:
property int DefaultIndex {
   int get();
   void set (    int value);
}

Property Value

The default index of the field. A -1 indicates there is no default option, in which case the DefaultValue property indicates a default custom value to be used instead.
Exceptions
ExceptionDescription
If the supplied index is out-of-bounds.
See Also

Reference

ChoiceField Class
ChoiceField Members