Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / DropDownItemCollection Class / SelectedValue Property

In This Topic
    SelectedValue Property
    In This Topic
    Gets or sets the value associated with the current display text for the content control. If this content control is not mapped to XML using the XmlMapping property, then this property shall be ignored. If this content control is mapped to XML, it shall be used to determine whether the current display text in the content control shall be retained when the document is opened, as follows: When the XML mapping is created, the content in the custom XML data is retrieved. If this content has an associated list item (matching its value property), then the corresponding display text shall be displayed in the content control. If no list item exists, this content shall be matched against this property value. If the values match, the current display text shall be retained. If the values do not match, the current custom XML data content shall be the new display text (since no match exists in the list items).
    Syntax
    'Declaration
     
    Public Property SelectedValue As System.String
    public System.string SelectedValue {get; set;}
    See Also