Share via


IInfoPathViewControl.Value property

Gets or sets the value of the current control in the enumeration.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Property Value As String
    Get
    Set
'Usage
Dim instance As IInfoPathViewControl
Dim value As String

value = instance.Value

instance.Value = value
string Value { get; set; }

Property value

Type: System.String
The value of the control.

Remarks

The following controls are limited to certain types of data.

Control

Data Type

Textbox

Any xsd:string value

Rich Text Box

XHTML tree with XHTML namespaces on top level elements. XHTML tree will be inserted into XML DOM without parsing.

Drop-Down List Box

Any xsd:string value

List Box

Any xsd:string value

Date Picker

Any xsd:string value

Check Box

"CHECKED" or "UNCHECKED"

Option Button

"SELECTED"

Bulleted, Numbered and Plain Lists

Any xsd:string value

Picture and Ink Picture

Any xsd:base64Binary data

For a list of controls that are enumerated in the view, if present, see the GetControls method of the IInfoPathDataImporterFields interface.

For more information about programmatically importing data into an InfoPath form, see the InfoPath Developer Portal on the Microsoft Office Developer Center.

See also

Reference

IInfoPathViewControl interface

IInfoPathViewControl members

Microsoft.Office.Interop.InfoPath namespace