Compartilhar via


RibbonGallery.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

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.

Applies to