IndirectBindingTOfTypeTValue Method |
Casts this binding value to another (compatible) type, or returns the default if the types do not match.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public IndirectBinding<TValue> OfType<TValue>(
TValue defaultConvertedValue = null,
T defaultValue = null
)
Public Function OfType(Of TValue) (
Optional defaultConvertedValue As TValue = Nothing,
Optional defaultValue As T = Nothing
) As IndirectBinding(Of TValue)
member OfType :
?defaultConvertedValue : 'TValue *
?defaultValue : 'T
(* Defaults:
let _defaultConvertedValue = defaultArg defaultConvertedValue null
let _defaultValue = defaultArg defaultValue null
*)
-> IndirectBinding<'TValue>
Parameters
- defaultConvertedValue (Optional)
- Type: TValue
[Missing <param name="defaultConvertedValue"/> documentation for "M:Eto.Forms.IndirectBinding`1.OfType``1(``0,`0)"]
- defaultValue (Optional)
- Type: T
[Missing <param name="defaultValue"/> documentation for "M:Eto.Forms.IndirectBinding`1.OfType``1(``0,`0)"]
Type Parameters
- TValue
- The type to cast the values of this binding to.
Return Value
Type:
IndirectBindingTValue[Missing <returns> documentation for "M:Eto.Forms.IndirectBinding`1.OfType``1(``0,`0)"]
See Also