# SegmentedItem class

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

```cs
[TypeConverter(SegmentedItemConverter)]
public abstract class SegmentedItem : BindableWidget
```

Base class for items of the [SegmentedButton](https://eto.picoe.ca/api/type/eto.forms.segmentedbutton.md) control.

**Derived types:** [ButtonSegmentedItem](https://eto.picoe.ca/api/type/eto.forms.buttonsegmenteditem.md), [MenuSegmentedItem](https://eto.picoe.ca/api/type/eto.forms.menusegmenteditem.md)

## Constructors

- [SegmentedItem](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/ctor.md): (2 overloads) Initializes a new instance of the `SegmentedItem` class.

## Fields

- [ClickEvent](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/clickevent.md): (static) Identifier for handlers to attach the [SegmentedItem.Click](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/click.md) event.
- [SelectedChangedEvent](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/selectedchangedevent.md): (static) Identifier for handlers to attach the [SegmentedItem.SelectedChanged](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/selectedchanged.md) event.

## Properties

- [Command](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/command.md): Gets or sets the command to invoke when the segmented item is pressed.
- [CommandParameter](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/commandparameter.md): Gets or sets the parameter to pass to the [SegmentedItem.Command](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/command.md) when executing or determining its CanExecute state.
- [Enabled](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/enabled.md): Gets or sets a value indicating whether this `SegmentedItem` is enabled.
- [Image](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/image.md): Gets or sets the image to display in this segment.
- [Parent](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/parent.md): Gets the parent button this item belongs to.
- [Selected](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/selected.md): Gets or sets a value indicating whether this `SegmentedItem` is selected.
- [Text](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/text.md): Gets or sets the text to display for this segment.
- [ToolTip](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/tooltip.md): Gets or sets the ToolTip to display for this segment
- [Visible](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/visible.md): Gets or sets a value indicating whether this `SegmentedItem` is visible.
- [Width](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/width.md): Gets or sets the width of this segment, or -1 to auto size.

## Methods

- [GetCallback](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/getcallback.md): Gets an instance of an object used to perform callbacks to the widget from handler implementations
- [OnClick](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/onclick.md): Raises the [SegmentedItem.Click](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/click.md) event.
- [OnSelectedChanged](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/onselectedchanged.md): Raises the [SegmentedItem.SelectedChanged](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/selectedchanged.md) event.
- [Unbind](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/unbind.md): Unbinds any bindings in the [BindableWidget.Bindings](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/bindings.md) collection and removes the bindings

## Events

- [Click](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/click.md): Occurs when this segment is clicked.
- [SelectedChanged](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/selectedchanged.md): Occurs when this [SegmentedItem.Selected](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/selected.md) property changes.

## Convertors

- [operator implicit](https://eto.picoe.ca/api/type/eto.forms.segmenteditem/op-implicit.md): (3 overloads, static) Implicitly converts a command to a segmented item.

## Inherited Members

- From [BindableWidget](https://eto.picoe.ca/api/type/eto.forms.bindablewidget.md): [Bindings](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/bindings.md), [DataContext](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/datacontext.md), [IsDataContextChanging](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/isdatacontextchanging.md), [Parents](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/parents.md), [DataContextChanged](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/datacontextchanged.md), [FindParent](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/findparent.md), [OnDataContextChanged](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/ondatacontextchanged.md), [UpdateBindings](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/updatebindings.md)
- From [Widget](https://eto.picoe.ca/api/type/eto.widget.md): [ControlObject](https://eto.picoe.ca/api/type/eto.widget/controlobject.md), [Handler](https://eto.picoe.ca/api/type/eto.widget/handler.md), [ID](https://eto.picoe.ca/api/type/eto.widget/id.md), [IsDisposed](https://eto.picoe.ca/api/type/eto.widget/isdisposed.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget/nativehandle.md), [Platform](https://eto.picoe.ca/api/type/eto.widget/platform.md), [Properties](https://eto.picoe.ca/api/type/eto.widget/properties.md), [Style](https://eto.picoe.ca/api/type/eto.widget/style.md), [StyleChanged](https://eto.picoe.ca/api/type/eto.widget/stylechanged.md), [Dispose](https://eto.picoe.ca/api/type/eto.widget/dispose.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget/initialize.md), [OnStyleChanged](https://eto.picoe.ca/api/type/eto.widget/onstylechanged.md), [ToString](https://eto.picoe.ca/api/type/eto.widget/tostring.md)
