Modifica

Condividi tramite


IInfoPathViewControl.Value Property

Definition

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

public:
 property System::String ^ Value { System::String ^ get(); void set(System::String ^ value); };
public string Value { get; set; }
member this.Value : string with get, set
Public Property Value As String

Property Value

The value of the control.

Remarks

The following controls are limited to certain types of data.

TextboxAny xsd:string value
Rich Text BoxXHTML tree with XHTML namespaces on top level elements. XHTML tree will be inserted into XML DOM without parsing.
Drop-Down List BoxAny xsd:string value
List BoxAny xsd:string value
Date PickerAny xsd:string value
Check Box"CHECKED" or "UNCHECKED"
Option Button"SELECTED"
Bulleted, Numbered and Plain ListsAny xsd:string value
Picture and Ink PictureAny xsd:base64Binary data

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

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

Applies to