Class LengthPrimitive
Inheritance
LengthPrimitive
Assembly: IVLab.ABREngine.Runtime.dll
Syntax
public class LengthPrimitive : FloatPrimitive, IFloatPrimitive, IPrimitive, IABRInput
Constructors
|
Improve this Doc
View Source
LengthPrimitive(float)
Declaration
public LengthPrimitive(float value)
Parameters
Type |
Name |
Description |
float |
value |
|
|
Improve this Doc
View Source
LengthPrimitive(string)
Declaration
public LengthPrimitive(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Properties
|
Improve this Doc
View Source
ParsingRegex
The regex to use to convert this from a string. Group named "value"
should be the floating point number, group named "units" should be the
units, if any.
Declaration
public override Regex ParsingRegex { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Units
Declaration
public override string Units { get; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
SetFromString(string)
Set the value of the primitive from a string (similar to using the string constructor)
Declaration
public override void SetFromString(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Overrides
Operators
|
Improve this Doc
View Source
implicit operator LengthPrimitive(float)
Declaration
public static implicit operator LengthPrimitive(float f)
Parameters
Type |
Name |
Description |
float |
f |
|
Returns
Implements