# StackLayoutItem class

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

```cs
[ContentProperty("Control")]
[TypeConverter(StackLayoutItemConverter)]
public class StackLayoutItem
```

Item for a single control in a [StackLayout](https://eto.picoe.ca/api/type/eto.forms.stacklayout.md).

## Constructors

- [StackLayoutItem](https://eto.picoe.ca/api/type/eto.forms.stacklayoutitem/ctor.md): (4 overloads) Initializes a new instance of the [StackLayoutItem](https://eto.picoe.ca/api/type/eto.forms.stacklayoutitem.md) class.

## Properties

- [Control](https://eto.picoe.ca/api/type/eto.forms.stacklayoutitem/control.md): Gets or sets the control for this item.
- [Expand](https://eto.picoe.ca/api/type/eto.forms.stacklayoutitem/expand.md): Gets or sets a value indicating whether the control expands to available space in the direction of the layout.
- [HorizontalAlignment](https://eto.picoe.ca/api/type/eto.forms.stacklayoutitem/horizontalalignment.md): Gets or sets the horizontal alignment for the control for vertical stack layouts, or null to use [StackLayout.HorizontalContentAlignment](https://eto.picoe.ca/api/type/eto.forms.stacklayout/horizontalcontentalignment.md).
- [VerticalAlignment](https://eto.picoe.ca/api/type/eto.forms.stacklayoutitem/verticalalignment.md): Gets or sets the vertical alignment for the control for horizontal stack layouts, or null to use [StackLayout.VerticalContentAlignment](https://eto.picoe.ca/api/type/eto.forms.stacklayout/verticalcontentalignment.md).

## Convertors

- [operator implicit](https://eto.picoe.ca/api/type/eto.forms.stacklayoutitem/op-implicit.md): (3 overloads, static) Converts a control to a StackLayoutItem implicitly.
