18 : base(AttributeName, Value, Document)
29 : base(E, AttributeName, true, Document)
50 public override bool TryConvert(
object Result, out
int Value)
52 if (Result is
double d)
54 Value = (int)(d + 0.5);
58 return base.TryConvert(Result, out Value);
67 public override bool TryParse(
string StringValue, out
int Value)
69 if (
int.
TryParse(StringValue, out Value))
82 return Value.ToString();
Contains a 2D layout document.
Manages an attribute value or expression.
bool HasPresetValue
If the attribute has a preset value.
string Name
Attribute name
Positive integer attribute
override bool TryConvert(object Result, out int Value)
Tries to convert script result to a value of type float.
PositiveIntegerAttribute(string AttributeName, int Value, Layout2DDocument Document)
Positive integer attribute
PositiveIntegerAttribute CopyIfNotPreset(Layout2DDocument ForDocument)
Copies the attribute object if undefined, or defined by an expression. Returns a reference to itself,...
override bool TryParse(string StringValue, out int Value)
Tries to parse a string value
override string ToString(int Value)
Converts a value to a string.
PositiveIntegerAttribute(string AttributeName, Expression Expression, Layout2DDocument Document)
Positive integer attribute
PositiveIntegerAttribute(XmlElement E, string AttributeName, Layout2DDocument Document)
Positive integer attribute
Class managing a script expression.