PDFView4NET WinForms Edition
SelectedValue Property (PDFListField)




O2S.Components.PDFView4NET.Forms Namespace > PDFListField Class : SelectedValue Property
Gets or sets the value of the first selected item in the list.
Syntax
'Declaration
 
Public Property SelectedValue As String
'Usage
 
Dim instance As PDFListField
Dim value As String
 
instance.SelectedValue = value
 
value = instance.SelectedValue
public string SelectedValue {get; set;}
public: __property string* get_SelectedValue();
public: __property void set_SelectedValue( 
   string* value
);
public:
property String^ SelectedValue {
   String^ get();
   void set (    String^ value);
}

Property Value

A string value specifying the value of the first selected item, null (Nothing in VB.NET) if there is no selected item.
Exceptions
ExceptionDescription
The value does not exist in field's set of values.
Remarks
When setting the selected value, if the value does not exist in the list, an exception is thrown.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PDFListField Class
PDFListField Members