ToSize Class
Forces conversion to a Size or Size2 depending on input size.
This is useful when using operators that may not be able to infer the desired types. For example:
<JavaScript>
exports.jsArray = [0.2, 0.4]
</JavaScript>
<Panel Offset="size({jsArray}) * 100%"/>
This function follows the conversion rules as though the operand was being converted directly to a Size
or Size2
property type. If the input is a float2
, array, or already a Size2, then it will be converted to a Size2
, otherwise a Size
type.
Location
- Namespace
- Fuse.Reactive
- Package
- Fuse.Reactive.Expressions 2.9.1
Interface of ToSize
Inherited from UnaryOperator
Compute(object) : object uno
IsOperandOptional : bool uno
OnLostOperand(IListener) uno
OnNewOperand(IListener, object) uno
Operand : Expression uno
Inherited from ComputeExpression
GetArgument(int) : Expression uno
Name : string uno
TryCompute(Argument[], object) : bool uno
Inherited from Expression
SourceFileName : string ux
hide
SourceLineNumber : int ux
hide
Subscribe(IContext, IListener) : IDisposable uno
See IExpression.Subscribe
for docs.
Inherited from object
Equals(object) : bool uno
GetHashCode : int uno
GetType : Type uno
ToString : string uno
Attached UX Attributes
GlobalKey (attached by Resource) : string ux
Implemented Interfaces
IExpression uno
ISourceLocation uno
hide