Skip to content

ListBoxMarkupExtensions.SelectedIndex<T> method

Sets the selected item index.

public static T SelectedIndex<T>(this T target, int value)
where T : ListBox
parameter description
T Receiver type.
target Target ListBox.
value Value assigned to SelectedIndex.

The same element for chaining.

Sets: ListBox.SelectedIndex