# RadioToggle class

Namespace: [Grasshopper2.UI.Toolbar](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.toolbar.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class RadioToggle : BarItem
```

A checkbox or radio toggle on a tool bar. Other toggles which share the same [Nomen.Section](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.nomen/section.md) will automatically untoggle when a toggle is pressed.

## Constructors

- [RadioToggle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/ctor.md): Create a new tool bar option button.

## Properties

- [AdjacentOnLeftSide](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/adjacentonleftside.md)
- [AdjacentOnRightSide](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/adjacentonrightside.md)
- [OffText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/offtext.md): Gets or sets the text to display in the OFF state, assuming no icon is present. By default, the [Nomen.Name](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.nomen/name.md) of the [Nomen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.nomen.md) is copied into this field.
- [OnText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/ontext.md): Gets or sets the text to display in the ON state, assuming no icon is present. By default, the [Nomen.Name](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.nomen/name.md) of the [Nomen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.nomen.md) is copied into this field.
- [Optional](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/optional.md): An optional option can be toggled off when it's toggled on, leaving all options in the same group unchecked.
- [RadioGroup](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/radiogroup.md): Gets the complete group of radio buttons this option belongs to. An option is part of a radio group if any other Options on any toolbar in the same [Bar.Bundle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.bar/bundle.md) share the same [Nomen.Section](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.nomen/section.md) string.
- [State](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/state.md): Gets the state of this option.
- [Style](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/style.md): Gets or sets the icon+text drawing style.

## Methods

- [DrawDisabled](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/drawdisabled.md)
- [DrawFocus](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/drawfocus.md)
- [DrawHover](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/drawhover.md)
- [DrawNormal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/drawnormal.md)
- [MouseDown](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/mousedown.md)
- [MouseLeave](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/mouseleave.md)
- [MouseMove](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/mousemove.md)
- [MouseUp](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/mouseup.md)
- [SetState](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/setstate.md): Method for setting the state of this option externally. If this option acts as a radio-button then it cannot be unset.
- [ShowTooltipAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/showtooltipat.md)
- [Toggle](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/toggle.md): Toggle this state and cause associated options to toggle off appropriately.

## Events

- [StateChanged](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.radiotoggle/statechanged.md): Event handler for state changes.

## Inherited Members

- From [BarItem](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem.md): [Bar](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/bar.md), [Bounds](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/bounds.md), [Enabled](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/enabled.md), [Icon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/icon.md), [KeyCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/keycode.md), [MaximumWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/maximumwidth.md), [MinimumWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/minimumwidth.md), [Nomen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/nomen.md), [OffColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/offcolour.md), [OnColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/oncolour.md), [CreateOutline](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/createoutline.md), [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/draw.md), [DrawIcon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/drawicon.md), [DrawIconAndText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/drawiconandtext.md), [DrawText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/drawtext.md), [FindGroupByChapter<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/findgroupbychapter.md), [FindGroupBySection<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/findgroupbysection.md), [HasNeighbourToTheLeft](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/hasneighbourtotheleft.md), [HasNeighbourToTheRight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/hasneighbourtotheright.md), [IsEnabled](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/isenabled.md), [KeyDown](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/keydown.md), [KeyUp](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/keyup.md), [Layout](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/layout.md), [MouseDoubleClick](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/mousedoubleclick.md), [NeighbourToTheLeft](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/neighbourtotheleft.md), [NeighbourToTheRight](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/neighbourtotheright.md), [OverrideInfo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/overrideinfo.md), [OverrideText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/overridetext.md), [SetSizeLimits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/setsizelimits.md), [TextInput](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.toolbar.baritem/textinput.md)
