SegmentedItem Conversion (Image to SegmentedItem) |
Implicitly converts an image to a segmented item.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static implicit operator SegmentedItem (
Image image
)
Public Shared Widening Operator CType (
image As Image
) As SegmentedItem
F# does not support the declaration of new casting operators.
Parameters
- image
- Type: Eto.DrawingImage
Image for the segmented item.
Return Value
Type:
SegmentedItemA segmented item with the specified image.
Remarks
This allows you to do things like the following:
new SegmentedButton { Items = { myImage1, myImage2, myImage3 } };
See Also