Click or drag to resize

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
public IndirectBinding<TValue> OfType<TValue>(
	TValue defaultConvertedValue = null,
	T defaultValue = null


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

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