19 : base(AttributeName, Value, Document)
30 : base(E, AttributeName, true, Document)
51 public override bool TryConvert(
object Result, out
float Value)
53 if (Result is
double d)
59 return base.TryConvert(Result, out Value);
68 public override bool TryParse(
string StringValue, out
float Value)
Helps with parsing of commong data types.
static string Encode(bool x)
Encodes a Boolean for use in XML and other formats.
static bool TryParse(string s, out double Value)
Tries to decode a string encoded double.
Contains a 2D layout document.
Manages an attribute value or expression.
bool HasPresetValue
If the attribute has a preset value.
string Name
Attribute name
Floating point (Single) attribute
FloatAttribute(XmlElement E, string AttributeName, Layout2DDocument Document)
Floating point (Single) attribute
override string ToString(float Value)
Converts a value to a string.
override bool TryConvert(object Result, out float Value)
Tries to convert script result to a value of type float.
FloatAttribute(string AttributeName, float Value, Layout2DDocument Document)
Floating point (Single) attribute
override bool TryParse(string StringValue, out float Value)
Tries to parse a string value
FloatAttribute CopyIfNotPreset(Layout2DDocument ForDocument)
Copies the attribute object if undefined, or defined by an expression. Returns a reference to itself,...
FloatAttribute(string AttributeName, Expression Expression, Layout2DDocument Document)
Floating point (Single) attribute
Class managing a script expression.