# ThemedSegmentedButtonHandler class

Namespace: [Eto.Forms.ThemedControls](https://eto.picoe.ca/api/namespace/eto.forms.themedcontrols.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public class ThemedSegmentedButtonHandler : ThemedControlHandler<Panel, SegmentedButton, SegmentedButton.ICallback>, SegmentedButton.IHandler
```

Themed [SegmentedButton](https://eto.picoe.ca/api/type/eto.forms.segmentedbutton.md) handler which uses a series of [ToggleButton](https://eto.picoe.ca/api/type/eto.forms.togglebutton.md) controls in a table.

## Properties

- [SelectedIndex](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/selectedindex.md): Gets or sets the index of the selected item, or -1 for no selection.
- [SelectedIndexes](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/selectedindexes.md): Gets or sets the selected indexes.
- [SelectionMode](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/selectionmode.md): Gets or sets the selection mode.
- [Spacing](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/spacing.md): Gets or sets the spacing between the buttons

## Methods

- [AttachEvent](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/attachevent.md): Attaches the specified event to the platform-specific control
- [ClearItems](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/clearitems.md): Clears all items from the segmented button.
- [ClearSelection](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/clearselection.md): Clears all selected items.
- [CreateControl](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/createcontrol.md): Creates the control if not already set.
- [GetPreferredSize](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/getpreferredsize.md): Gets the preferred size of this control given the specified `availableSize`.
- [InsertItem](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/insertitem.md): Inserts the item at the specified index.
- [OnLoad](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/onload.md): Called when the control is loaded on a form
- [OnPreLoad](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/onpreload.md): Called before the control is loaded on a form
- [RemoveItem](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/removeitem.md): Removes the item at the specified index.
- [SelectAll](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/selectall.md): Selects all items when [SegmentedButton.IHandler.SelectionMode](https://eto.picoe.ca/api/type/eto.forms.segmentedbutton.ihandler/selectionmode.md) is set to Multiple.
- [SetItem](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedsegmentedbuttonhandler/setitem.md): Sets the item at the specified index, replacing its existing item.

## Inherited Members

- From [ThemedControlHandler<TControl, TWidget, TCallback>](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3.md): [AllowDrop](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/allowdrop.md), [BackgroundColor](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/backgroundcolor.md), [ContextMenu](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/contextmenu.md), [ControlObject](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/controlobject.md), [Cursor](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/cursor.md), [Enabled](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/enabled.md), [FocusControl](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/focuscontrol.md), [HasFocus](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/hasfocus.md), [Height](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/height.md), [IsMouseCaptured](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/ismousecaptured.md), [KeyboardControl](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/keyboardcontrol.md), [Location](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/location.md), [MouseControl](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/mousecontrol.md), [PropagateLoadEvents](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/propagateloadevents.md), [Size](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/size.md), [SupportedPlatformCommands](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/supportedplatformcommands.md), [TabIndex](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/tabindex.md), [TabStop](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/tabstop.md), [ToolTip](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/tooltip.md), [Visible](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/visible.md), [VisualControls](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/visualcontrols.md), [Width](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/width.md), [AddGesture](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/addgesture.md), [CaptureMouse](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/capturemouse.md), [ClearGestures](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/cleargestures.md), [DoDragDrop](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/dodragdrop.md), [Focus](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/focus.md), [GetNativeParentWindow](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/getnativeparentwindow.md), [Initialize](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/initialize.md), [Invalidate](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/invalidate.md), [MapPlatformCommand](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/mapplatformcommand.md), [OnLoadComplete](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/onloadcomplete.md), [OnUnLoad](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/onunload.md), [PointFromScreen](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/pointfromscreen.md), [PointToScreen](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/pointtoscreen.md), [Print](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/print.md), [ReleaseMouseCapture](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/releasemousecapture.md), [RemoveGesture](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/removegesture.md), [ResumeLayout](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/resumelayout.md), [SetParent](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/setparent.md), [SuspendLayout](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/suspendlayout.md), [UpdateLayout](https://eto.picoe.ca/api/type/eto.forms.themedcontrolhandler-3/updatelayout.md)
- From [WidgetHandler<TControl, TWidget, TCallback>](https://eto.picoe.ca/api/type/eto.widgethandler-3.md): [Callback](https://eto.picoe.ca/api/type/eto.widgethandler-3/callback.md)
- From [WidgetHandler<TControl, TWidget>](https://eto.picoe.ca/api/type/eto.widgethandler-2.md): [Connector](https://eto.picoe.ca/api/type/eto.widgethandler-2/connector.md), [Control](https://eto.picoe.ca/api/type/eto.widgethandler-2/control.md), [DisposeControl](https://eto.picoe.ca/api/type/eto.widgethandler-2/disposecontrol.md), [HasControl](https://eto.picoe.ca/api/type/eto.widgethandler-2/hascontrol.md), [CreateConnector](https://eto.picoe.ca/api/type/eto.widgethandler-2/createconnector.md), [Dispose](https://eto.picoe.ca/api/type/eto.widgethandler-2/dispose.md)
- From [WidgetHandler<TWidget>](https://eto.picoe.ca/api/type/eto.widgethandler-1.md): [ID](https://eto.picoe.ca/api/type/eto.widgethandler-1/id.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widgethandler-1/nativehandle.md), [Widget](https://eto.picoe.ca/api/type/eto.widgethandler-1/widget.md), [DetachEvent](https://eto.picoe.ca/api/type/eto.widgethandler-1/detachevent.md), [Dispose](https://eto.picoe.ca/api/type/eto.widgethandler-1/dispose.md), [HandleEvent](https://eto.picoe.ca/api/type/eto.widgethandler-1/handleevent.md), [IsEventHandled](https://eto.picoe.ca/api/type/eto.widgethandler-1/iseventhandled.md), [OnInitializeComplete](https://eto.picoe.ca/api/type/eto.widgethandler-1/oninitializecomplete.md), [UnhandleEvent](https://eto.picoe.ca/api/type/eto.widgethandler-1/unhandleevent.md)
