Control Conversion (Image to Control) |
Converts an
Image to a control implicitly.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static implicit operator Control (
Image image
)
Public Shared Widening Operator CType (
image As Image
) As Control
F# does not support the declaration of new casting operators.
Parameters
- image
- Type: Eto.DrawingImage
Image to convert to an ImageView control.
Return Value
Type:
Control[Missing <returns> documentation for "M:Eto.Forms.Control.op_Implicit(Eto.Drawing.Image)~Eto.Forms.Control"]
Remarks
This provides an easy way to add images to your layout through code, without having to create
ImageView instances manually.
See Also