Share via


WpfComboBox.SelectedItem Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets the contents of the selected item in the list part of this combo box.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting.WpfControls
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Overridable Property SelectedItem As String
public virtual string SelectedItem { get; set; }
public:
virtual property String^ SelectedItem {
    String^ get ();
    void set (String^ value);
}
abstract SelectedItem : string with get, set 
override SelectedItem : string with get, set
function get SelectedItem () : String 
function set SelectedItem (value : String)

Property Value

Type: String
The contents of the selected item in the list part of this combo box.

.NET Framework Security

See Also

Reference

WpfComboBox Class

Microsoft.VisualStudio.TestTools.UITesting.WpfControls Namespace