1using System.Threading.Tasks;
20 : base(Document, Parent)
30 set => this.distance = value;
37 public override Task
FromXml(XmlElement Input)
40 return base.FromXml(Input);
49 base.ExportAttributes(Output);
51 this.distance?.
Export(Output);
60 base.CopyContents(Destination);
73 await base.DoMeasureDimensions(State);
93 base.ExportStateAttributes(Output);
Contains a 2D layout document.
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.
LengthAttribute CopyIfNotPreset(Layout2DDocument ForDocument)
Copies the attribute object if undefined, or defined by an expression. Returns a reference to itself,...
Abstract base class for distance elements.
override Task FromXml(XmlElement Input)
Populates the element (including children) with information from its XML definition.
LengthAttribute DistanceAttribute
Degrees
float dist
Measured distance
override async Task DoMeasureDimensions(DrawingState State)
Measures layout entities and defines unassigned properties, related to dimensions.
override void CopyContents(ILayoutElement Destination)
Copies contents (attributes and children) to the destination element.
override void ExportStateAttributes(XmlWriter Output)
Exports the local attributes of the current element.
override void ExportAttributes(XmlWriter Output)
Exports attributes to XML.
Distance(Layout2DDocument Document, ILayoutElement Parent)
Abstract base class for distance elements.
Variables Session
Current session.
void CalcDrawingSize(Length L, ref float Size, bool Horizontal, ILayoutElement Element)
Converts a defined length to drawing size.
Abstract base class for layout elements.
Layout2DDocument Document
Layout document.
Base interface for all layout elements.
Layout2DDocument Document
Layout document.