Class PercentPrimitive
Inheritance
PercentPrimitive
Assembly: IVLab.ABREngine.Runtime.dll
Syntax
public class PercentPrimitive : FloatPrimitive, IFloatPrimitive, IPrimitive, IABRInput
Constructors
|
Improve this Doc
View Source
PercentPrimitive(float)
Declaration
public PercentPrimitive(float value)
Parameters
Type |
Name |
Description |
float |
value |
|
|
Improve this Doc
View Source
PercentPrimitive(string)
Declaration
public PercentPrimitive(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
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Improve this Doc
View Source
implicit operator PercentPrimitive(float)
Declaration
public static implicit operator PercentPrimitive(float f)
Parameters
Type |
Name |
Description |
float |
f |
|
Returns
Implements