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