1using System.Threading.Tasks;
20 : base(Document, Parent)
30 set => this.degrees = value;
37 public override Task
FromXml(XmlElement Input)
40 return base.FromXml(Input);
49 base.ExportAttributes(Output);
51 this.degrees?.
Export(Output);
60 base.CopyContents(Destination);
62 if (Destination is
Angle Dest)
73 await base.DoMeasureDimensions(State);
76 this.angle = Degrees.
Result;
77 this.defined &= Degrees.
Ok;
91 base.ExportStateAttributes(Output);
Contains a 2D layout document.
Abstract base class for angle elements.
FloatAttribute DegreesAttribute
Degrees
override void ExportAttributes(XmlWriter Output)
Exports attributes to XML.
override void CopyContents(ILayoutElement Destination)
Copies contents (attributes and children) to the destination element.
Angle(Layout2DDocument Document, ILayoutElement Parent)
Abstract base class for distance elements.
float angle
Measured distance
override void ExportStateAttributes(XmlWriter Output)
Exports the local attributes of the current element.
override Task FromXml(XmlElement Input)
Populates the element (including children) with information from its XML definition.
override async Task DoMeasureDimensions(DrawingState State)
Measures layout entities and defines unassigned properties, related to dimensions.
void Export(XmlWriter Output)
Exports the attribute.
void ExportState(XmlWriter Output)
Exports the state of the attribute.
static async Task< EvaluationResult< T > > TryEvaluate(Attribute< T > Attribute, Variables Session)
Tries to evaluate the attribute value.
Result of asynchronous evaluation.
T Result
Evaluated result, if successful.
bool Ok
If evaluation was successful.
Floating point (Single) attribute
FloatAttribute CopyIfNotPreset(Layout2DDocument ForDocument)
Copies the attribute object if undefined, or defined by an expression. Returns a reference to itself,...
Variables Session
Current session.
Abstract base class for layout elements.
Layout2DDocument Document
Layout document.
Base interface for all layout elements.
Layout2DDocument Document
Layout document.