RibbonDropDown.SelectedItemIndex Property

Definition

Gets or sets the index of the currently selected RibbonDropDownItem.

public:
 property int SelectedItemIndex { int get(); void set(int value); };
[System.ComponentModel.Browsable(false)]
public int SelectedItemIndex { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.SelectedItemIndex : int with get, set
Public Property SelectedItemIndex As Integer

Property Value

The index of the currently selected RibbonDropDownItem.

Attributes

Remarks

Setting the SelectedItemIndex property to an index number causes the RibbonDropDownItem in that position in the Items collection to appear in the text box portion of the drop-down list.

Assigning a new value to the SelectedItemIndex property does not cause a SelectionChanged event to be raised.

Values assigned to the SelectedItemIndex must be from 0 (zero) through (Items.Count - 1).

If the Items collection is empty, this property returns -1.

Applies to