RibbonDropDown.SelectedItemIndex Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.