ContentControlListEntry.Value Property

Definition

Returns or sets the programmatic value of an item in a drop-down list or combo box content control. Read/write.

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

String

Remarks

Use the Value property to store data that you need to use at processing time. For example, the Text property may contain a string that you want to display and the Value property may contain a number, such as an item number, that you can use to look up information in a database. Also, the value of the Value property is what is sent to the custom XML data, if the content control is mapped to XML data in the data store.

Note: You cannot set the Value property for list entries that were automatically populated from an XML schema attached to the custom XML that is mapped to this control.

Applies to