RibbonGallery.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
Changing the SelectedItemIndex property changes the value returned by the SelectedItem property. In effect, changing the SelectedItemIndex property changes the selection.
Values assigned to the SelectedItemIndex must be from 0 (zero) through (Items.Count
- 1).
If the Items collection is empty, this property returns -1.