ContentControlListEntry.Value Property

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

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

Syntax

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

value = instance.Value

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

Property Value

Type: System.String
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.

See Also

Reference

ContentControlListEntry Interface

ContentControlListEntry Members

Microsoft.Office.Interop.Word Namespace