Value property
Collapse the table of content
Expand the table of content

ContentControlListEntry.Value property

Office 2013 and later

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)

string Value { get; set; }

Property value

Type: System.String
String

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.

NoteNote

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.

Show:
© 2016 Microsoft