Partager via


WpfComboBox.SelectedIndex Property

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

Gets or sets the index 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 SelectedIndex As Integer
public virtual int SelectedIndex { get; set; }
public:
virtual property int SelectedIndex {
    int get ();
    void set (int value);
}
abstract SelectedIndex : int with get, set 
override SelectedIndex : int with get, set
function get SelectedIndex () : int 
function set SelectedIndex (value : int)

Property Value

Type: Int32
The index 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