You are here: Backstage View - radioGroup - getSelectedItemIndex
Backstage View - radioGroup - getSelectedItemIndex
Sets the Index of each selected item within the control.
Sample Ribbon XML file:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> <ribbon startFromScratch="false"> <!-- Ribbon XML --> </ribbon> <backstage> <tab id="btab1" label="Label 1. Tab"> <firstColumn> <group id="myGroup" style="normal" label="Form Button:"> <bottomItems> <radioGroup id="rGrp" label="Label RadioGroup" getItemCount="GetItemCount" getItemID="GetItemID" getItemLabel="GetItemLabel" onAction="OnActionRadioGroup" getSelectedItemIndex="GetSelectedItemIndex"> </radioGroup> <radioGroup id="rGrp1" label="Label RadioGroup" getItemCount="GetItemCount" getItemID="GetItemID" getItemLabel="GetItemLabel" onAction="OnActionRadioGroup" getSelectedItemIndex="GetSelectedItemIndex"> </radioGroup> </bottomItems> </group> </firstColumn> </tab> <button id="btnFast1" label="Label Backstage Button" imageMso="HappyFace" onAction="OnActionButton"/> </backstage> </customUI>
Function to be copied to a standard module:
Sub GetSelectedItemIndex(control As IRibbonControl, ByRef index) Select Case control.Id Case "rGrp" index = 1 Case "rGrp1" index = 3 End Select End Sub
You can find this sample in download: BackstageView 1