RibbonDropDown.SelectedItemIndex Property (2007 System)
Gets or sets the index of the currently selected RibbonDropDownItem.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public Property SelectedItemIndex As Integer
'Usage
Dim instance As RibbonDropDown
Dim value As Integer
value = instance.SelectedItemIndex
instance.SelectedItemIndex = value
[BrowsableAttribute(false)]
public int SelectedItemIndex { get; set; }
[BrowsableAttribute(false)]
public:
property int SelectedItemIndex {
int get ();
void set (int value);
}
public function get SelectedItemIndex () : int
public function set SelectedItemIndex (value : int)
Property Value
Type: System.Int32
The index of the currently selected RibbonDropDownItem.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Office.Tools.Ribbon Namespace